Trait eclectic::map::Get [] [src]

pub trait Get<Q: ?Sized>: Base {
    fn get(&self, key: &Q) -> Option<&Self::Value>;

    fn contains_key(&self, key: &Q) -> bool { ... }
}

A map that supports lookups using keys of type &Q.

Required Methods

fn get(&self, key: &Q) -> Option<&Self::Value>

Returns a reference to the value in the map corresponding to the given key.

Provided Methods

fn contains_key(&self, key: &Q) -> bool

Checks if the map contains the given key.

Implementors