Skip to main content

Module iter

Module iter 

Source
Expand description

Iterator types produced by LinkedHashMap.

All iterator structs are returned by methods on LinkedHashMap; you rarely need to name them explicitly.

TypeCreated byYields
Iteriter(&K, &V)
IterMutiter_mut(&K, &mut V)
Keyskeys&K
Valuesvalues&V
ValuesMutvalues_mut&mut V
Draindrain(K, V): empties the map
IntoIterinto_iter(K, V): consumes the map

Structsยง

Drain
Draining iterator: removes and yields every (K, V) pair in insertion order, leaving the map empty.
IntoIter
Consuming iterator: yields every (K, V) pair in insertion order, consuming the map.
Iter
Iterator over (&K, &V) pairs in insertion order.
IterMut
Iterator over (&K, &mut V) pairs in insertion order.
Keys
Iterator over keys in insertion order.
Values
Iterator over values in insertion order.
ValuesMut
Mutable iterator over values in insertion order.