pub struct Shared<T: ?Sized>(_);
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) -> Selfwhere
T: Sized,
Self: Sized,
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
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more