mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Allow swapping out the hasher
This commit is contained in:
parent
e68a4d373f
commit
d4ed1cd2fa
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue