pub struct RcWeakAnchor<T>(pub Weak<T>);
Expand description
Wrap an std::rc::Weak<T>
to opt-in; if dangling it serializes as null
.
Tuple Fields§
§0: Weak<T>
Trait Implementations§
Source§impl<T: Clone> Clone for RcWeakAnchor<T>
impl<T: Clone> Clone for RcWeakAnchor<T>
Source§fn clone(&self) -> RcWeakAnchor<T>
fn clone(&self) -> RcWeakAnchor<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for RcWeakAnchor<T>
impl<T> !RefUnwindSafe for RcWeakAnchor<T>
impl<T> !Send for RcWeakAnchor<T>
impl<T> !Sync for RcWeakAnchor<T>
impl<T> Unpin for RcWeakAnchor<T>
impl<T> !UnwindSafe for RcWeakAnchor<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