pub struct ModVarMutGuard<'a, T>(/* private fields */);
Expand description
A mutable lock of a ModVar
. Can be dereferenced to get the contained data, and modified.
The value is updated in the external viewer if and only if this guard is dereferenced mutably.
Trait Implementations§
Source§impl<'a, T> Deref for ModVarMutGuard<'a, T>
impl<'a, T> Deref for ModVarMutGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ModVarMutGuard<'a, T>
impl<'a, T> !RefUnwindSafe for ModVarMutGuard<'a, T>
impl<'a, T> !Send for ModVarMutGuard<'a, T>
impl<'a, T> Sync for ModVarMutGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for ModVarMutGuard<'a, T>
impl<'a, T> !UnwindSafe for ModVarMutGuard<'a, 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