Expand description
A module containing HashMap
and associtated types.
Currently, the only other included types are for iteration, providing owned and borrowed iteration over entries, keys or values in a map.
As a note, there is no mutable iterator over entries or keys because mutating the keys of a HashMap in place would cause a logic error.
HashMap
is also re-exported under the parent module.
Structs§
- HashMap
- A map of keys to values which relies on the keys implementing
Hash
. - Index
NoCap - Into
Iter - A type for owned iteration over a
HashMap
. Produces values of type(K, V)
. - Into
Keys - A type for owned iteration over a
HashMap
’s keys. Produces values of typeK
. - Into
Values - A type for owned iteration over a
HashMap
’s values. Produces values of typeV
. - Iter
- A type for borrowed iteration over a
HashMap
. Produces values of type(&K, &V)
. - Keys
- A type for borrowed iteration over a
HashMap
’s keys. Produces values of type&K
. - Values
- A type for borrowed iteration over a
HashMap
’s values. Produces values of type&V
. - Values
Mut - A type for mutable iteration over a
HashMap
’s values. Produces values of type&mut V
.