pub struct WeakRef<T> { /* private fields */ }Expand description
A weak reference that cannot prevent the owner from dropping.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for WeakRef<T>
impl<T> !RefUnwindSafe for WeakRef<T>
impl<T> !Send for WeakRef<T>
impl<T> !Sync for WeakRef<T>
impl<T> Unpin for WeakRef<T>
impl<T> UnsafeUnpin for WeakRef<T>
impl<T> !UnwindSafe for WeakRef<T>
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