Skip to content

Rc #1

@Tamschi

Description

@Tamschi

Is your feature request related to a problem? Please describe.

The current implementation is generic enough to support !Sync reference-counting for all consumers, too.

Describe the solution you'd like

Adapt sync::Arc into an rc::Rc struct.
The API should be extremely similar, but decrements and acquires should be relaxed.

Describe alternatives you've considered

None.

Additional context

There are opportunities for fallible (TryFrom) conversions between these types and Box.
Remember to .acquire() when moving away from either Arc or Rc!

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestA good-for-Hacktoberfest issue. This label is only maintained in October.domain: RustInvolves Rust code.good first issueGood for newcomerspriority: somedayIf you need this, please let me know!state: approvedApproved to proceed.type: featureBrand new functionality, features, pages, workflows, endpoints, etc.work: clearA known solution is (to be) implemented.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions