Trait eclectic::map::Insert [] [src]

pub trait Insert: Map + Insert {
    fn insert(&mut self, key: Self::Key, value: Self::Value) -> Option<Self::Value>;
}

A map that supports insertion.

Required Methods

fn insert(&mut self, key: Self::Key, value: Self::Value) -> Option<Self::Value>

Inserts the given key and value into the map without replacing an equivalent key.

Returns the equivalent key's value if the map contained one, None otherwise.

Implementors