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`
208 fn from(unique: UniqueArc<T>) -> Self { in from()
209 Self::from(Pin::from(unique)) in from()
219 fn from(mut unique: Pin<UniqueArc<T>>) -> Self { in from()
221 unsafe { T::on_create_list_arc_from_unique(unique.as_mut()) }; in from()
222 let arc = Arc::from(unique); in from()
237 pub fn pair_from_unique<const ID2: u64>(unique: UniqueArc<T>) -> (Self, ListArc<T, ID2>) in pair_from_unique()
241 Self::pair_from_pin_unique(Pin::from(unique)) in pair_from_unique()
249 mut unique: Pin<UniqueArc<T>>, in pair_from_pin_unique()
257 unsafe { <T as ListArcSafe<ID>>::on_create_list_arc_from_unique(unique.as_mut()) }; in pair_from_pin_unique()
259 unsafe { <T as ListArcSafe<ID2>>::on_create_list_arc_from_unique(unique.as_mut()) }; in pair_from_pin_unique()
261 let arc1 = Arc::from(unique); in pair_from_pin_unique()