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
sourcepub unsafe fn as_ref(&self) -> &T
pub unsafe fn as_ref(&self) -> &T
Safety
The caller must ensure that the returned reference is not used after the underlying
sourcepub unsafe fn as_mut(&self) -> &mut T
pub unsafe fn as_mut(&self) -> &mut T
Safety
The caller must ensure that the returned reference is not used after the underlying