[][src]Type Definition functional_list::ListMap

type ListMap<K, V> = List<(K, V)>;

A Map from K to V.

Implementations

impl<K, V> ListMap<K, V> where
    K: Eq
[src]

pub fn get<Q: ?Sized>(&self, key: &Q) -> Option<&V> where
    K: Borrow<Q>,
    Q: Eq
[src]

Get the element that matches the key, if it exists. Searches the elements in order.

pub fn insert(&self, key: K, value: V) -> Self[src]

Equivalent to self.prepend((key, value))