Module hash_tables
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§
- HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- Random
State RandomState
is the default state forHashMap
types.
Functions§
- hash_
map_ with_ capacity - Builds a new
HashMap
with the given capacity. - new_
hash_ map - Builds a new
HashMap
.