pub trait MapMut<'a, K, Q: ?Sized, V>: CollectionMut + InsertMut<K, V, Output = Option<V>> + RemoveMut<&'a Q, Output = Option<V>> + Get<&'a Q, Output = V> + GetMut<&'a Q, Output = V> + Iterable<'a, (&'a K, &'a V)> + IterableMut<'a, (&'a K, &'a mut V)> where
K: 'a + Borrow<Q>,
Q: 'a,
V: 'a, {
fn contains_key(&self, k: &Q) -> bool;
}
impl<'a, K, Q: ?Sized, V, S> MapMut<'a, K, Q, V> for HashMap<K, V, S> where
K: 'a + Eq + Hash + Borrow<Q>,
Q: 'a + Eq + Hash,
V: 'a,
S: 'a + BuildHasher,
impl<'a, K, Q: ?Sized, V> MapMut<'a, K, Q, V> for BTreeMap<K, V> where
K: 'a + Eq + Ord + Borrow<Q>,
Q: 'a + Eq + Ord,
V: 'a,