/** Removes the mapping of the specified value key if this map contains a mapping for the key */
Removes the mapping of the specified value key if this map contains a mapping for the key
Removes the mapping of the specified value key if this map contains a mapping for the key
pub fn remove(&mut self, key: i32) {
        let idx = (key % 1000) as usize;
        if let Some(sub_map) = self.map[idx].as_mut() {
            sub_map.remove_by_key(key);
        }
    }
pub fn remove ( & mut self , key : i32 ) { let idx = ( key % 1000 ) as usize ; if let Some ( sub_map ) = self . map [ idx ] . as_mut ( ) { sub_map . remove_by_key ( key ) ; } }
Removes the mapping of the specified value key if this map contains a mapping for the key
Removes the mapping of the specified value key if this map contains a mapping for the key
&mut self
key
i32