Module map

Source
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.
IndexNoCap
IntoIter
A type for owned iteration over a HashMap. Produces values of type (K, V).
IntoKeys
A type for owned iteration over a HashMap’s keys. Produces values of type K.
IntoValues
A type for owned iteration over a HashMap’s values. Produces values of type V.
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.
ValuesMut
A type for mutable iteration over a HashMap’s values. Produces values of type &mut V.