Crate ordermap

Source
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 on self 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
HashValue πŸ”’
Hash value newtype. Not larger than usize, since anything larger isn’t used for selecting position anyway.
IntoIter
Iter
IterMut
Keys
OccupiedEntry
OrderMap
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 the indices array and it points to the index of a Bucket in self.entries.
ShortHash πŸ”’
A possibly truncated hash value.
ShortHashProxy πŸ”’
VacantEntry
Values
ValuesMut

EnumsΒ§

Entry
Entry for an existing key-value pair or a vacant location to insert one.
Inserted πŸ”’

TraitsΒ§

Equivalent
Key equivalence trait.
MutableKeys
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 πŸ”’