Expand description
Provides HashMap
based on hashbrown’s implementation.
Unlike hashbrown::HashMap
, HashMap
defaults to FixedHasher
instead of RandomState
.
This provides determinism by default with an acceptable compromise to denial
of service resistance in the context of a game engine.
Structs§
- A
Hasher
instance implementing foldhash, optimized for speed. - A draining iterator over the entries of a
HashMap
in arbitrary order. The iterator element type is(K, V)
. - A draining iterator over entries of a
HashMap
which don’t satisfy the predicatef(&k, &mut v)
in arbitrary order. The iterator element type is(K, V)
. - New-type for
HashMap
withFixedHasher
as the default hashing provider. Can be trivially converted to and from a hashbrownHashMap
usingFrom
. - An owning iterator over the entries of a
HashMap
in arbitrary order. The iterator element type is(K, V)
. - An owning iterator over the keys of a
HashMap
in arbitrary order. The iterator element type isK
. - An owning iterator over the values of a
HashMap
in arbitrary order. The iterator element type isV
. - An iterator over the entries of a
HashMap
in arbitrary order. The iterator element type is(&'a K, &'a V)
. - A mutable iterator over the entries of a
HashMap
in arbitrary order. The iterator element type is(&'a K, &'a mut V)
. - An iterator over the keys of a
HashMap
in arbitrary order. The iterator element type is&'a K
. - The error returned by
try_insert
when the key already exists. - A
BuildHasher
forfast::FoldHasher
that is randomly initialized. - A builder for computing where in a
HashMap
a key-value pair would be stored. - A builder for computing where in a
HashMap
a key-value pair would be stored. - A view into an occupied entry in a
HashMap
. It is part of theRawEntryMut
enum. - A view into a vacant entry in a
HashMap
. It is part of theEntry
enum. - An iterator over the values of a
HashMap
in arbitrary order. The iterator element type is&'a V
. - A mutable iterator over the values of a
HashMap
in arbitrary order. The iterator element type is&'a mut V
.
Enums§
- A view into a single entry in a map, which may either be vacant or occupied, with any borrowed form of the map’s key type.
- A view into a single entry in a map, which may either be vacant or occupied.
Type Aliases§
- Shortcut for
Entry
withFixedHasher
as the default hashing provider.