pub fn remove<Q: ?Sized>(&mut self, key: &Q) -> Option<V>
    where
        K: Borrow<Q>,
        Q: PartialEq,
    {
        match get_last_index(&self.entries, &key) {
            None => None,
            Some(idx) => Some(self.entries.remove(idx).1),
        }
    }
/// Remove a key from the list, returning the value at the key if the key
/// was previously in the list.
///
/// 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.
///
/// If multiple entries with the given key exist in the list, only the last
/// will be removed (the one which would b returned by
/// `AssocListMut::get`).
///
/// # 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(&1);
/// assert_eq!(alist.get(&1), Some(&"a"));
/// alist.remove(&1);
/// assert_eq!(alist.get(&1), None);
/// ```
Remove a key from the list, returning the value at the key if the key
was previously in the list.

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.

If multiple entries with the given key exist in the list, only the last
will be removed (the one which would b returned by
`AssocListMut::get`).
Remove a key from the list returning the value at the key if the key was previously in the list . 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 . If multiple entries with the given key exist in the list only the last will be removed ( the one which would b returned by ` AssocListMut :: get ` ) .
pub fn remove<Q: ?Sized>(&mut self, key: &Q) -> Option<V>
    where
        K: Borrow<Q>,
        Q: PartialEq,
    {
        match get_last_index(&self.entries, &key) {
            None => None,
            Some(idx) => Some(self.entries.remove(idx).1),
        }
    }
pub fn remove < Q : ? Sized > ( & mut self , key : & Q ) -> Option < V > where K : Borrow < Q > , Q : PartialEq , { match get_last_index ( & self . entries , & key ) { None => None , Some ( idx ) => Some ( self . entries . remove ( idx ) . 1 ) , } }
Remove a key from the list, returning the value at the key if the key
was previously in the list.
Remove a key from the list returning the value at the key if the key was previously in 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 .