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.
Re-exports§
pub use set::OrderSet;
Modules§
Macros§
- Call self.method(args) with
::<u32>
or::<u64>
depending onself
size class. - Create an
OrderMap
from a list of key-value pairs - Create an
OrderSet
from a list of values
Structs§
- Bucket 🔒
- Hash value newtype. Not larger than usize, since anything larger isn’t used for selecting position anyway.
- A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
- Pos 🔒
Pos
is stored in theindices
array and it points to the index of aBucket
in self.entries. - A possibly truncated hash value.
Enums§
- Entry for an existing key-value pair or a vacant location to insert one.
- Inserted 🔒
Traits§
- Key equivalence trait.
- Opt-in mutable access to keys.
- Size 🔒Trait for the “size class”. Either u32 or u64 depending on the index size needed to address an entry’s indes in self.entries.
Functions§
- Find, in the indices, an entry that already exists at a known position inside self.entries in the OrderMap.
- lo32 🔒
- The number of steps that
current
is forward of the desired position for hash