pub struct RcAnchor<T>(pub Rc<T>);
Expand description
Wrap an Rc<T>
to opt-in to anchor emission for that field.
Tuple Fields§
§0: Rc<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RcAnchor<T>
impl<T> RefUnwindSafe for RcAnchor<T>where
T: RefUnwindSafe,
impl<T> !Send for RcAnchor<T>
impl<T> !Sync for RcAnchor<T>
impl<T> Unpin for RcAnchor<T>
impl<T> UnwindSafe for RcAnchor<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