pub struct WriteGuard<'guard, K: Eq + Hash, V, S: BuildHasher = RandomState> { /* private fields */ }
Expand description
Provides mutable access to the underlying map, and publishes all changes to new readers when dropped.
See WriteHandle::guard
for examples. See View
for additional examples and the public API to interact with the underlying map.
Trait Implementations§
Auto Trait Implementations§
impl<'guard, K, V, S> Freeze for WriteGuard<'guard, K, V, S>
impl<'guard, K, V, S = RandomState> !RefUnwindSafe for WriteGuard<'guard, K, V, S>
impl<'guard, K, V, S = RandomState> !Send for WriteGuard<'guard, K, V, S>
impl<'guard, K, V, S = RandomState> !Sync for WriteGuard<'guard, K, V, S>
impl<'guard, K, V, S> Unpin for WriteGuard<'guard, K, V, S>
impl<'guard, K, V, S = RandomState> !UnwindSafe for WriteGuard<'guard, K, V, S>
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