Lines Matching full:unique
131 /// A wrapper around [`Arc`] that's guaranteed unique for the given id.
152 /// While this `ListArc` is unique for the given id, there still might exist normal `Arc`
207 fn from(unique: UniqueArc<T>) -> Self { in from()
208 Self::from(Pin::from(unique)) in from()
218 fn from(mut unique: Pin<UniqueArc<T>>) -> Self { in from()
220 unsafe { T::on_create_list_arc_from_unique(unique.as_mut()) }; in from()
221 let arc = Arc::from(unique); in from()
236 pub fn pair_from_unique<const ID2: u64>(unique: UniqueArc<T>) -> (Self, ListArc<T, ID2>) in pair_from_unique()
240 Self::pair_from_pin_unique(Pin::from(unique)) in pair_from_unique()
248 mut unique: Pin<UniqueArc<T>>, in pair_from_pin_unique()
256 unsafe { <T as ListArcSafe<ID>>::on_create_list_arc_from_unique(unique.as_mut()) }; in pair_from_pin_unique()
258 unsafe { <T as ListArcSafe<ID2>>::on_create_list_arc_from_unique(unique.as_mut()) }; in pair_from_pin_unique()
260 let arc1 = Arc::from(unique); in pair_from_pin_unique()