Skip to main content

Crate netstack3_hashmap

Crate netstack3_hashmap 

Source
Expand description

Re-export HashMap and HashSet symbols used by netstack3 core.

This crate exists because the netstack3-core wants to be no_std to ensure we’re not taking on big OS dependencies in case it’s moved to run elsewhere. However, HashMap and HashSet are NOT available in the alloc crate.

The implementations are provided by hashbrown, which is the same implementation backing the standard library’s collections, but usable from no_std targets.

This crate may evolve if necessary to provide different HashMap implementations based on compilation features as necessary.

Modules§

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 ().

Structs§

HashMap
A hash map implemented with quadratic probing and SIMD lookup.
HashSet
A hash set implemented as a HashMap where the value is ().