pub struct WeakRef<T: ObjectType>(/* private fields */);
Expand description
A weak reference to an object.
Implementations§
Trait Implementations§
source§impl<T: ObjectType> Clone for WeakRef<T>
impl<T: ObjectType> Clone for WeakRef<T>
source§impl<T: ObjectType> Default for WeakRef<T>
impl<T: ObjectType> Default for WeakRef<T>
source§impl<T: ObjectType> Drop for WeakRef<T>
impl<T: ObjectType> Drop for WeakRef<T>
source§impl<T: ObjectType> From<WeakRef<T>> for SendWeakRef<T>
impl<T: ObjectType> From<WeakRef<T>> for SendWeakRef<T>
source§fn from(v: WeakRef<T>) -> SendWeakRef<T>
fn from(v: WeakRef<T>) -> SendWeakRef<T>
Converts to this type from the input type.
source§impl<T: ObjectType> PartialEq<T> for WeakRef<T>
impl<T: ObjectType> PartialEq<T> for WeakRef<T>
source§impl<T: ObjectType> PartialEq for WeakRef<T>
impl<T: ObjectType> PartialEq for WeakRef<T>
source§impl<T: ObjectType> PartialOrd for WeakRef<T>
impl<T: ObjectType> PartialOrd for WeakRef<T>
impl<T: ObjectType + Send + Sync> Send for WeakRef<T>
impl<T: ObjectType + Sync> Sync for WeakRef<T>
Auto Trait Implementations§
impl<T> Freeze for WeakRef<T>
impl<T> RefUnwindSafe for WeakRef<T>where
T: RefUnwindSafe,
impl<T> Unpin for WeakRef<T>
impl<T> UnwindSafe for WeakRef<T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)