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§
- equivalent π
- macros π
- mutable_keys π
- A hash set implemented using
OrderMap
- util π
Macros§
- dispatch_32_vs_64 π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 - probe_loop π
Structs§
- Bucket π
- HashValue π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. - ShortHash πA possibly truncated hash value.
- ShortHashProxy π
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§
- desired_pos π
- Find, in the indices, an entry that already exists at a known position inside self.entries in the OrderMap.
- hash_elem_using π
- lo32 π
- probe_distance πThe number of steps that
current
is forward of the desired position for hash - split_lo_hi π
- to_raw_capacity π
- usable_capacity π