Expand description
Open-addressing hash maps and sets built on Elastic Hashing and Funnel
Hashing, sharing a SwissTable-style control-byte core.
The crate is no_std (needs alloc); the default features std and
default-hasher are on for the usual std-backed, foldhash-seeded setup.
Disable them for a core-only build where callers supply their own hasher.
Structs§
- Default
Hash Builder - Default
BuildHasherfor the maps’Stype parameter. - Epoch
Snapshot - Snapshot of the current allocation epoch.
- Reserve
Fraction - An exact dyadic reserve fraction
delta = 1 / 2^d.
Enums§
- Epoch
Transition - Cause of the current allocation epoch.
- Reserve
Fraction Error - A reserve fraction cannot be represented by the exact dyadic model.
- TryBuild
Error - Error returned by fallible map and set constructors.
- TryReserve
Error - Error returned by
try_reservewhen the map can’t grow.
Traits§
- Equivalent
- Key equivalence trait.
Type Aliases§
- Elastic
Difference - Iterator over values present only in the first set.
- Elastic
Drain - Draining iterator that empties the map.
- Elastic
Entry - A view into a single entry, occupied or vacant.
- Elastic
Extract If - Iterator yielding entries removed by
extract_if. - Elastic
Hash Map - Open-addressed hash map using elastic hashing.
- Elastic
Hash Set - Hash set using elastic hashing.
- Elastic
Intersection - Iterator over values present in both sets.
- Elastic
Into Iter - Consuming iterator over owned
(K, V). - Elastic
Into Keys - Owned
Kiterator. - Elastic
Into Values - Owned
Viterator. - Elastic
Iter - Borrowing iterator over
(&K, &V). - Elastic
Iter Mut - Borrowing iterator over
(&K, &mut V). - Elastic
Keys &Kiterator.- Elastic
Occupied Entry - View of an occupied entry.
- Elastic
Occupied Error - Error returned by
try_inserton key collision. - Elastic
SetDrain - Draining iterator that empties the set.
- Elastic
SetEntry - A view into a single set entry.
- Elastic
SetExtract If - Iterator yielding values removed by set
extract_if. - Elastic
SetInto Iter - Consuming iterator over set values.
- Elastic
SetIter - Borrowing iterator over set values.
- Elastic
SetOccupied Entry - View of an occupied set entry.
- Elastic
SetVacant Entry - View of a vacant set entry.
- Elastic
Symmetric Difference - Iterator over values present in exactly one set.
- Elastic
Union - Iterator over values present in either set.
- Elastic
Vacant Entry - View of a vacant entry.
- Elastic
Values &Viterator.- Elastic
Values Mut &mut Viterator.- Funnel
Difference - Iterator over values present only in the first set.
- Funnel
Drain - Draining iterator that empties the map.
- Funnel
Entry - A view into a single entry, occupied or vacant.
- Funnel
Extract If - Iterator yielding entries removed by
extract_if. - Funnel
Hash Map - Open-addressed hash map using funnel hashing.
- Funnel
Hash Set - Hash set using funnel hashing.
- Funnel
Intersection - Iterator over values present in both sets.
- Funnel
Into Iter - Consuming iterator over owned
(K, V). - Funnel
Into Keys - Owned
Kiterator. - Funnel
Into Values - Owned
Viterator. - Funnel
Iter - Borrowing iterator over
(&K, &V). - Funnel
Iter Mut - Borrowing iterator over
(&K, &mut V). - Funnel
Keys &Kiterator.- Funnel
Occupied Entry - View of an occupied entry.
- Funnel
Occupied Error - Error returned by
try_inserton key collision. - Funnel
SetDrain - Draining iterator that empties the set.
- Funnel
SetEntry - A view into a single set entry.
- Funnel
SetExtract If - Iterator yielding values removed by set
extract_if. - Funnel
SetInto Iter - Consuming iterator over set values.
- Funnel
SetIter - Borrowing iterator over set values.
- Funnel
SetOccupied Entry - View of an occupied set entry.
- Funnel
SetVacant Entry - View of a vacant set entry.
- Funnel
Symmetric Difference - Iterator over values present in exactly one set.
- Funnel
Union - Iterator over values present in either set.
- Funnel
Vacant Entry - View of a vacant entry.
- Funnel
Values &Viterator.- Funnel
Values Mut &mut Viterator.