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 π
- Hash
Value π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. - Short
Hash πA possibly truncated hash value. - Short
Hash πProxy
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 thatcurrent
is forward of the desired position for hash - split_
lo_ πhi - to_
raw_ πcapacity - usable_
capacity π