Module lightning::util::hash_tables
source · Expand description
Generally LDK uses std
’s HashMap
s, however when building for no-std, LDK uses hashbrown
’s
HashMap
s with the std
SipHasher
and uses getrandom
to opportunistically randomize it,
if randomization is available.
This module simply re-exports the HashMap
used in LDK for public consumption.
Structs§
- A hash map implemented with quadratic probing and SIMD lookup.
RandomState
is the default state forHashMap
types.
Functions§
- hash_map_with_capacityNon-
hashbrown
Builds a newHashMap
with the given capacity. - new_hash_mapNon-
hashbrown
Builds a newHashMap
.