pub struct Weak<T> { /* private fields */ }Expand description
A weak reference that does not prevent deallocation.
Weak references can be upgraded to strong references if the value is still alive.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Weak<T>
impl<T> !RefUnwindSafe for Weak<T>
impl<T> Send for Weak<T>where
T: Send,
impl<T> !Sync for Weak<T>
impl<T> Unpin for Weak<T>where
T: Unpin,
impl<T> UnsafeUnpin for Weak<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Weak<T>where
T: UnwindSafe,
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