TreeMap::iter
pub fn iter() -> TreeMapIter<K, V> Import
Source: use collections::tree::{TreeMap}; src/collections/tree.hy Returns an iterator over the entries in ascending key order.
for e in m does the same; each item is an Entry with key and value.
Called on a TreeMap value as value.iter(…).
Returns#
TreeMapIter<K, V>
See also#
collections::tree::EntryTreeMap: An ordered map from keys of typeKto values of typeV.TreeMap::new: Creates an empty map.TreeMap::empty: Creates an empty map; the same asTreeMap::new.TreeMap::size: Returns the number of entries.TreeMap::is_empty: Returnstruewhen the map has no entries.TreeMap::clear: Removes every entry.TreeMap::insert: Storesvunderk, replacing any value already there.