Crate hashbrown

Source
Expand description

This crate is a Rust port of Google’s high-performance SwissTable hash map, adapted to make it a drop-in replacement for Rust’s standard HashMap and HashSet types.

The original C++ version of SwissTable can be found here, and this CppCon talk gives an overview of how the algorithm works.

Re-exports§

pub use crate::map::HashMap;
pub use crate::set::HashSet;
pub use crate::table::HashTable;

Modules§

control 🔒
external_trait_impls 🔒
hash_map
A hash map implemented with quadratic probing and SIMD lookup.
hash_set
A hash set implemented as a HashMap where the value is ().
hash_table
A hash table implemented with quadratic probing and SIMD lookup.
macros 🔒
map 🔒
raw 🔒
raw_entry 🔒
rustc_entry 🔒
scopeguard 🔒
set 🔒
table 🔒
util 🔒

Enums§

DefaultHashBuilder
Dummy default hasher for HashMap and HashSet.
TryReserveError
The error type for try_reserve methods.

Traits§

Equivalent
Key equivalence trait.