pub fn shift_remove<K2>(&mut self, key: &K2)
        where
            K: core::borrow::Borrow<K2>,
            K2: ?Sized + PartialEq,
        {
            if let Some(index) = self.0.iter().position(|(k, _)| k.borrow() == key) {
                self.0.remove(index);
            }
        }
/// Remove the key-value pair equivalent to key.
Remove the key-value pair equivalent to key.
Remove the key - value pair equivalent to key .
pub fn shift_remove<K2>(&mut self, key: &K2)
        where
            K: core::borrow::Borrow<K2>,
            K2: ?Sized + PartialEq,
        {
            if let Some(index) = self.0.iter().position(|(k, _)| k.borrow() == key) {
                self.0.remove(index);
            }
        }
pub fn shift_remove < K2 > ( & mut self , key : & K2 ) where K : core :: borrow :: Borrow < K2 > , K2 : ? Sized + PartialEq , { if let Some ( index ) = self . 0 . iter ( ) . position ( | ( k , _ ) | k . borrow ( ) == key ) { self . 0 . remove ( index ) ; } }
Remove the key-value pair equivalent to key.
Remove the key - value pair equivalent to key .
&mut self
key
&K2
&mut self
key
&K2