pub struct Ref<A> { /* private fields */ }Expand description
A generic mutable reference that is safe to share between fibers. Unlike FiberRef, this is shared state.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Ref<A>
impl<A> !RefUnwindSafe for Ref<A>
impl<A> Send for Ref<A>where
A: Send,
impl<A> Sync for Ref<A>where
A: Send,
impl<A> Unpin for Ref<A>
impl<A> !UnwindSafe for Ref<A>
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