Expand description
A hash map with temporarily-stable indices.
This crate provides a hash map where each key is associated with an index. This index remains stable unless the user explicitly compacts the map. This allows for concurrent iteration over and modification of the map.
Structs§
- Drain
- A draining iterator over the entries of a
StableMapin arbitrary order. The iterator element type is(K, V). - Into
Iter - An owning iterator over the entries of a
StableMapin arbitrary order. The iterator element type is(K, V). - Into
Keys - An owning iterator over the keys of a
StableMapin arbitrary order. The iterator element type isK. - Into
Values - An owning iterator over the values of a
StableMapin arbitrary order. The iterator element type isV. - Iter
- An iterator over the entries of a
StableMapin arbitrary order. The iterator element type is(&'a K, &'a V). - IterMut
- A mutable iterator over the entries of a
StableMapin arbitrary order. The iterator element type is(&'a K, &'a mut V). - Keys
- An iterator over the keys of a
StableMapin arbitrary order. The iterator element type is&'a K. - Occupied
Entry - A view into an occupied entry in a
StableMap. It is part of theEntryandEntryRefenums. - Occupied
Error - The error returned by
try_insertwhen the key already exists. - Stable
Map - A hash map with temporarily-stable indices.
- Vacant
Entry - A view into a vacant entry in a
StableMap. It is part of theEntryenum. - Vacant
Entry Ref - A view into a vacant entry in a
StableMap. It is part of theEntryRefenum. - Values
- An iterator over the values of a
StableMapin arbitrary order. The iterator element type is&'a V. - Values
Mut - A mutable iterator over the values of a
StableMapin arbitrary order. The iterator element type is&'a mut V.