pub struct Shared<T: ?Sized>(/* private fields */);
Expand description
For thread-sharable buffer holds
Implementations§
Trait Implementations§
type ControlWrapper = Arc<T>
fn as_wrapper(&self) -> &Self::ControlWrapper
fn from_boxed(value: Box<T>) -> Box<Self>
fn from_value(value: T) -> Self
fn from_wrapper_boxed(r: &Self::ControlWrapper) -> Box<Self>
fn from_wrapper(r: &Self::ControlWrapper) -> Selfwhere
Self: Sized,
fn inner(&self) -> &T
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