pub fn remove(&mut self, key: &K) -> Option<V> {
        if let Ok(idx) = self.keys.binary_search(key) {
            self.keys.remove(idx);
            Some(self.values.remove(idx))
        } else {
            None
        }
    }
/// Removes a value by key.
///
/// Complexity: O(N)
Removes a value by key.
Removes a value by key .
pub fn remove(&mut self, key: &K) -> Option<V> {
        if let Ok(idx) = self.keys.binary_search(key) {
            self.keys.remove(idx);
            Some(self.values.remove(idx))
        } else {
            None
        }
    }
pub fn remove ( & mut self , key : & K ) -> Option < V > { if let Ok ( idx ) = self . keys . binary_search ( key ) { self . keys . remove ( idx ) ; Some ( self . values . remove ( idx ) ) } else { None } }
Removes a value by key.
Removes a value by key .
&mut self
key
&K
&mut self
key
&K