Type Definition ListMap
functional_list
type ListMap<K, V> = List<(K, V)>;
A Map from K to V.
Map
K
V
impl<K, V> ListMap<K, V> where K: Eq,
pub fn get<Q: ?Sized>(&self, key: &Q) -> Option<&V> where K: Borrow<Q>, Q: Eq,
Get the element that matches the key, if it exists. Searches the elements in order.
pub fn insert(&self, key: K, value: V) -> Self
Equivalent to self.prepend((key, value))
self.prepend((key, value))