Lines Matching refs:WeakPtr
10 /// The typical way to construct a WeakPtr from Rust is by [downgrading] from a
15 pub struct WeakPtr<T>
23 impl<T> WeakPtr<T>
27 /// Makes a new WeakPtr wrapping a null pointer.
31 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit();
57 unsafe impl<T> Send for WeakPtr<T> where T: Send + Sync + WeakPtrTarget {}
58 unsafe impl<T> Sync for WeakPtr<T> where T: Send + Sync + WeakPtrTarget {}
60 impl<T> Clone for WeakPtr<T>
65 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit();
75 impl<T> Drop for WeakPtr<T>
85 impl<T> Debug for WeakPtr<T>
94 /// Trait bound for types which may be used as the `T` inside of a `WeakPtr<T>`