pub fn remove_all<Q: ?Sized>(&mut self, key: &Q) -> bool
    where
        K: Borrow<Q>,
        Q: PartialEq,
    {
        let len_before = self.len();
        self.entries.retain(|(k, _)| key != k.borrow());
        let len_after = self.len();
        len_before != len_after
    }
/// Removes all entries with the given key from the list. Returns true if
/// any entries were removed.
///
/// The key may be any borrowed form of the list's key type, but the
/// ordering on the borrowed form *must* match the ordering on the key type.
///
/// # Examples
///
/// ```
/// use bumpalo::Bump;
/// use arena_collections::AssocListMut;
///
/// let b = Bump::new();
/// let mut alist = AssocListMut::new_in(&b);
/// alist.insert(1, "a");
/// alist.insert(1, "b");
/// assert_eq!(alist.get(&1), Some(&"b"));
/// alist.remove_all(&1);
/// assert_eq!(alist.get(&1), None);
/// ```
Removes all entries with the given key from the list. Returns true if
any entries were removed.

The key may be any borrowed form of the list's key type, but the
ordering on the borrowed form *must* match the ordering on the key type.
Removes all entries with the given key from the list . Returns true if any entries were removed . The key may be any borrowed form of the list ' s key type but the ordering on the borrowed form * must * match the ordering on the key type .
pub fn remove_all<Q: ?Sized>(&mut self, key: &Q) -> bool
    where
        K: Borrow<Q>,
        Q: PartialEq,
    {
        let len_before = self.len();
        self.entries.retain(|(k, _)| key != k.borrow());
        let len_after = self.len();
        len_before != len_after
    }
pub fn remove_all < Q : ? Sized > ( & mut self , key : & Q ) -> bool where K : Borrow < Q > , Q : PartialEq , { let len_before = self . len ( ) ; self . entries . retain ( | ( k , _ ) | key != k . borrow ( ) ) ; let len_after = self . len ( ) ; len_before != len_after }
Removes all entries with the given key from the list.
Removes all entries with the given key from the list .
&mut self
key
&Q
&mut self
key
&Q
examples
```
use bumpalo::Bump;
use arena_collections::AssocListMut.


` ` ` use bumpalo :: Bump ; use arena_collections :: AssocListMut .