Struct erg_common::shared::Shared
source · [−]pub struct Shared<T: ?Sized>(_);
Implementations
pub fn new(t: T) -> Self
pub fn into_inner(self) -> T
pub fn copy(&self) -> Self
pub fn borrow(&self) -> Ref<'_, T>
pub fn borrow_mut(&self) -> RefMut<'_, T>
pub fn as_ptr(&self) -> *mut T
pub fn try_borrow_mut(&self) -> Result<RefMut<'_, T>, BorrowMutError>
pub fn can_borrow(&self) -> bool
pub fn can_borrow_mut(&self) -> bool
pub fn clone_inner(&self) -> T
Trait Implementations
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