Trait cc_traits::GetMut[][src]

pub trait GetMut<T>: Get<T> {
    fn get_mut(&mut self, key: T) -> Option<&mut Self::Item>;
}

Mutably queryable collection.

Required methods

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

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

Loading content...

Implementations on Foreign Types

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

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

Loading content...

Implementors

Loading content...