pub struct Weak<T: ?Sized> { /* private fields */ }
Expand description
A weak pointer to an atomically reference counted shared pointer
Can be upgraded to an Arc
, and will usually do the right thing.
Does not prevent the pointed-to memory from being dropped or deallocated.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Weak<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Weak<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for Weak<T>
impl<T> !Sync for Weak<T>
impl<T> Unpin for Weak<T>where
T: ?Sized,
impl<T> UnwindSafe for Weak<T>where
T: RefUnwindSafe + ?Sized,
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