Expand description
OrderMap is a hash table where the iteration order of the key-value
pairs is independent of the hash values of the keys.
It is based on IndexMap, and even shares many of the auxiliary types
like Slice and all of the iterators.
Unlike IndexMap, OrderMap does consider the order for PartialEq
and Eq, and it also implements PartialOrd, Ord, and Hash.
Methods like OrderMap::remove use IndexMap’s “shift” semantics, so
they preserve the relative order of remaining entries.
Re-exports§
pub use self::raw_entry_v1::RawEntryApiV1;
Modules§
- raw_
entry_ v1 - Opt-in access to the experimental raw entry API.
- rayon
rayon - Parallel iterator types for
OrderMapwithrayon. - serde_
seq serde - Functions to serialize and deserialize an
OrderMapas an ordered sequence.
Structs§
- Drain
- A draining iterator over the entries of an
IndexMap. - Extract
If - An extracting iterator for
IndexMap. - Indexed
Entry - A view into an occupied entry in an
OrderMapobtained by index. - Into
Iter - An owning iterator over the entries of an
IndexMap. - Into
Keys - An owning iterator over the keys of an
IndexMap. - Into
Values - An owning iterator over the values of an
IndexMap. - Iter
- An iterator over the entries of an
IndexMap. - IterMut
- A mutable iterator over the entries of an
IndexMap. - Iter
Mut2 - A mutable iterator over the entries of an
IndexMap. - Keys
- An iterator over the keys of an
IndexMap. - Occupied
Entry - A view into an occupied entry in an
OrderMap. It is part of theEntryenum. - Order
Map - A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
- Slice
- A dynamically-sized slice of key-value pairs in an
IndexMap. - Splice
- A splicing iterator for
IndexMap. - Vacant
Entry - A view into a vacant entry in an
OrderMap. It is part of theEntryenum. - Values
- An iterator over the values of an
IndexMap. - Values
Mut - A mutable iterator over the values of an
IndexMap.
Enums§
Traits§
- Mutable
Entry Key - Opt-in mutable access to
Entrykeys. - Mutable
Keys - Opt-in mutable access to
OrderMapkeys.