Allow swapping out the hasher

This commit is contained in:
Gwilym Kuiper 2022-03-19 23:13:02 +00:00
parent e68a4d373f
commit d4ed1cd2fa

View file

@ -228,10 +228,13 @@ impl<K, V> NodeStorage<K, V> {
}
}
pub struct HashMap<K, V> {
pub struct HashMap<K, V, H = BuildHasherDefault<FxHasher>>
where
H: BuildHasher,
{
nodes: NodeStorage<K, V>,
hasher: BuildHasherDefault<FxHasher>,
hasher: H,
}
impl<K, V> HashMap<K, V> {