pub struct SharedRef<'b, T> { /* private fields */ }Expand description
A reference handle returned by Shared::take_ref.
Behaves like &mut T / &T depending on usage.
The lifetime 'b is tied to the borrow of &mut self from Shared,
preventing 'static or longer-lived references from being created.
Trait Implementations§
Auto Trait Implementations§
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