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 π - set
- A hash set implemented using
OrderMap
- util π
MacrosΒ§
- dispatch_
32_ πvs_ 64 - Call self.method(args) with
::<u32>
or::<u64>
depending onself
size class. - ordermap
- Create an
OrderMap
from a list of key-value pairs - orderset
- Create an
OrderSet
from a list of values - probe_
loop π
StructsΒ§
- Bucket π
- Drain
- Hash
Value π - Hash value newtype. Not larger than usize, since anything larger isnβt used for selecting position anyway.
- Into
Iter - Iter
- IterMut
- Keys
- Occupied
Entry - Order
Map - 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 - Vacant
Entry - Values
- Values
Mut
EnumsΒ§
TraitsΒ§
- Equivalent
- Key equivalence trait.
- Mutable
Keys - 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_
existing_ πentry_ at - 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 π