pub struct MeCell<T> { /* private fields */ }
Implementations§
Source§impl<T> MeCell<T>
impl<T> MeCell<T>
pub fn new_group(content: T) -> Self
pub fn borrow(&self) -> MeRef<'_, T>
pub fn try_borrow(&self) -> Result<MeRef<'_, T>, MeBorrowError>
pub fn borrow_mut(&self) -> MeRefMut<'_, T>
pub fn try_borrow_mut(&self) -> Result<MeRefMut<'_, T>, MeBorrowError>
pub fn borrow_with<'a: 'b, 'b, U>( &'b self, source: &'b MeRef<'a, U>, ) -> MeRef<'b, T>
pub fn borrow_mut_with<'a: 'b, 'b, U>( &'b self, source: &'b mut MeRefMut<'a, U>, ) -> MeRefMut<'b, T>
pub unsafe fn borrow_mut_unsafe_with<'a: 'b, 'b, 'c, U>( &'c self, source: &'b mut MeRefMut<'a, U>, ) -> MeRefMut<'c, T>
pub fn borrow_with_handle<'a: 'b, 'b>( &'b self, source: &'b MeRefHandle<'a>, ) -> MeRef<'b, T>
pub fn borrow_mut_with_handle<'a: 'b, 'b>( &'b self, source: &'b mut MeRefMutHandle<'a>, ) -> MeRefMut<'b, T>
pub unsafe fn borrow_mut_unsafe_with_handle<'a: 'b, 'b, 'c>( &'c self, source: &'b mut MeRefMutHandle<'a>, ) -> MeRefMut<'c, T>
Auto Trait Implementations§
impl<T> !Freeze for MeCell<T>
impl<T> !RefUnwindSafe for MeCell<T>
impl<T> !Send for MeCell<T>
impl<T> !Sync for MeCell<T>
impl<T> Unpin for MeCell<T>where
T: Unpin,
impl<T> !UnwindSafe for MeCell<T>
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