pub struct ModVarGuard<'a, T>(/* private fields */);Expand description
An immutable lock of a ModVar or StaticModVar. Can be dereferenced to get the contained data.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for ModVarGuard<'a, T>
impl<'a, T> !RefUnwindSafe for ModVarGuard<'a, T>
impl<'a, T> !Send for ModVarGuard<'a, T>
impl<'a, T> Sync for ModVarGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for ModVarGuard<'a, T>
impl<'a, T> !UnwindSafe for ModVarGuard<'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