Struct flashmap::WriteGuard
source · [−]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
sourceimpl<'guard, K, V, S> Drop for WriteGuard<'guard, K, V, S> where
K: Eq + Hash,
S: BuildHasher,
impl<'guard, K, V, S> Drop for WriteGuard<'guard, K, V, S> where
K: Eq + Hash,
S: BuildHasher,
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more