pub struct ReadGuard<'guard, K, V, S = RandomState> { /* private fields */ }
Expand description

Provides immutable access to the map, and prevents entries from being dropped.

This guard provides a snapshot view of the map at a particular point in time. A new guard must be created in order to see updates from the writer. See ReadHandle::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.