Module coil-stdlib

collections::map

Keys need Eq and Hash. For keys in sorted order, use TreeMap.

Part of coil-stdlib. spool projects get it automatically; with plain coil, pass --root ~/.coil/stdlib/src.

Import what you use (use path::* is not allowed):

use collections::map::{Entry, HashMap};

Types#

NameDescription
EntryOne key-value pair, as HashMap iteration yields it.
HashMapA hash map from keys of type K to values of type V.
HashMapIterAn iterator over the entries of a HashMap, from HashMap::iter.
↑ ↓ navigate ↵ open