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

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.