Trait eclectic::set::Insert [] [src]

pub trait Insert: Base + Extend<Self::Item> {
    fn insert(&mut self, item: Self::Item) -> bool;
}

A set that supports insertion.

Required Methods

fn insert(&mut self, item: Self::Item) -> bool

Inserts the given item into the set and returns true if the set did not contain it.

Implementors