Trait cc_traits::Get[][src]

pub trait Get<T>: Collection {
    fn get(&self, key: T) -> Option<&Self::Item>;

    fn contains(&self, key: T) -> bool { ... }
}

Queryable collection.

Required methods

fn get(&self, key: T) -> Option<&Self::Item>[src]

Returns a reference to the item stored behind the given key (if any).

Loading content...

Provided methods

fn contains(&self, key: T) -> bool[src]

Checks if the collection contains an item behind the given key.

Loading content...

Implementations on Foreign Types

impl<'a, Q: ?Sized, K: Ord, V> Get<&'a Q> for BTreeMap<K, V> where
    K: Borrow<Q>,
    Q: Ord
[src]

impl<'a, Q: ?Sized, T: Ord> Get<&'a Q> for BTreeSet<T> where
    T: Borrow<Q>,
    Q: Ord
[src]

impl<'a, Q: ?Sized, K: Hash + Eq, V> Get<&'a Q> for HashMap<K, V> where
    K: Borrow<Q>,
    Q: Hash + Eq
[src]

impl<'a, Q: ?Sized, T: Hash + Eq> Get<&'a Q> for HashSet<T> where
    T: Borrow<Q>,
    Q: Hash + Eq
[src]

Loading content...

Implementors

Loading content...