Struct dashmap::ReadOnlyView [−][src]
pub struct ReadOnlyView<K, V, S = RandomState> { /* fields omitted */ }
Expand description
A read-only view into a DashMap
. Allows to obtain raw references to the stored values.
Implementations
Consumes this ReadOnlyView
, returning the underlying DashMap
.
Returns the number of elements the map can hold without reallocating.
Returns true
if the map contains a value for the specified key.
Returns a reference to the value corresponding to the key.
Returns the key-value pair corresponding to the supplied key.
An iterator visiting all key-value pairs in arbitrary order. The iterator element type is (&'a K, &'a V)
.
An iterator visiting all keys in arbitrary order. The iterator element type is &'a K
.
Trait Implementations
Auto Trait Implementations
impl<K, V, S = RandomState> !RefUnwindSafe for ReadOnlyView<K, V, S>
impl<K, V, S> Send for ReadOnlyView<K, V, S> where
K: Send,
S: Send,
V: Send,
impl<K, V, S> Unpin for ReadOnlyView<K, V, S> where
S: Unpin,
impl<K, V, S> UnwindSafe for ReadOnlyView<K, V, S> where
K: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more