Trait cc_traits::Insert[][src]

pub trait Insert: Collection {
    type Output;
    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

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, T: Ord> Insert for BTreeSet<T>[src]

type Output = bool

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

type Output = bool

Loading content...

Implementors

Loading content...