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§
- Default
Hasher - A
Hasherinstance implementing foldhash, optimized for speed. - Drain
- A draining iterator over the entries of a
HashMapin arbitrary order. The iterator element type is(K, V). - Extract
If - A draining iterator over entries of a
HashMapwhich don’t satisfy the predicatef(&k, &mut v)in arbitrary order. The iterator element type is(K, V). - HashMap
- New-type for
HashMapwithFixedHasheras the default hashing provider. Can be trivially converted to and from a hashbrownHashMapusingFrom. - Into
Iter - An owning iterator over the entries of a
HashMapin arbitrary order. The iterator element type is(K, V). - Into
Keys - An owning iterator over the keys of a
HashMapin arbitrary order. The iterator element type isK. - Into
Values - An owning iterator over the values of a
HashMapin arbitrary order. The iterator element type isV. - Iter
- An iterator over the entries of a
HashMapin arbitrary order. The iterator element type is(&'a K, &'a V). - IterMut
- A mutable iterator over the entries of a
HashMapin arbitrary order. The iterator element type is(&'a K, &'a mut V). - Keys
- An iterator over the keys of a
HashMapin arbitrary order. The iterator element type is&'a K. - Occupied
Entry - A view into an occupied entry in a
HashMap. It is part of theEntryandEntryRefenums. - Occupied
Error - The error returned by
try_insertwhen the key already exists. - Random
State - A
BuildHasherforfast::FoldHasherthat is randomly initialized. - RawEntry
Builder - A builder for computing where in a
HashMapa key-value pair would be stored. - RawEntry
Builder Mut - A builder for computing where in a
HashMapa key-value pair would be stored. - RawOccupied
Entry Mut - A view into an occupied entry in a
HashMap. It is part of theRawEntryMutenum. - Vacant
Entry - A view into a vacant entry in a
HashMap. It is part of theEntryenum. - Values
- An iterator over the values of a
HashMapin arbitrary order. The iterator element type is&'a V. - Values
Mut - A mutable iterator over the values of a
HashMapin arbitrary order. The iterator element type is&'a mut V.
Enums§
- Entry
Ref - 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.
- RawEntry
Mut - A view into a single entry in a map, which may either be vacant or occupied.
Type Aliases§
- Entry
- Shortcut for
EntrywithFixedHasheras the default hashing provider.