Trait cc_traits::MapInsert[][src]

pub trait MapInsert<K>: Collection {
    type Output;
    fn insert(&mut self, key: K, value: Self::Item) -> Self::Output;
}

Mutable map where new new key-value pairs can be inserted.

Associated Types

type Output[src]

The output of the insertion function.

Loading content...

Required methods

fn insert(&mut self, key: K, value: Self::Item) -> Self::Output[src]

Insert a new key-value pair in the collection.

Loading content...

Implementations on Foreign Types

impl<'a, K: Ord, V> MapInsert<K> for BTreeMap<K, V>[src]

type Output = Option<V>

impl<'a, K: Hash + Eq, V> MapInsert<K> for HashMap<K, V>[src]

type Output = Option<V>

Loading content...

Implementors

Loading content...