-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for UniqueRc/UniqueArc #112566
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(unique_rc_arc)]This is a tracking issue for
UniqueRcandUniqueArc, as discussed in rust-lang/libs-team#90.This feature supports creating cyclic data structures by creating an RC that is guaranteed to be uniquely owned. The uniquely owned RC can then be converted to a regular RC. While uniquely owned, we can freely modify the contents of the
UniqueRc/UniqueArc(i.e. they implementDerefMut). Weak pointers to the object can be made, but upgrading these will fail until it has been converted into a regular RC.Public API
Steps / History
UniqueRc: Addalloc::rc::UniqueRc#111849UniqueArcUnresolved Questions
EmptyRc/EmptyArc?is_uniquemethods? Could we add this functionality toRc/Arc/ instead? (comment)UniqueRc? (comment)Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩