[][src]Trait cc_traits::Insert

pub trait Insert: Collection {
    type Output;
    pub fn insert(&mut self, element: Self::Item) -> Self::Output;
}

Mutable collection where new elements can be inserted.

Associated Types

type Output[src]

The output of the insertion function.

Loading content...

Required methods

pub fn insert(&mut self, element: Self::Item) -> Self::Output[src]

Insert a new element in the collection.

Loading content...

Implementations on Foreign Types

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

type Output = Option<V>

impl<'a, T: Ord> Insert for BTreeSet<T>[src]

type Output = bool

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

type Output = Option<V>

impl<'a, T: Hash + Eq> Insert for HashSet<T>[src]

type Output = bool

Loading content...

Implementors

Loading content...