pub struct Shared<T> { /* private fields */ }
Expand description
A tracked ghost
container that you can put a ghost object in.
A Shared<T>
is duplicable and lets you get a &T
out.
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