pub fn delete(&mut self, key: K, value: V) -> usize {
        if let Occupied(mut entry) = self.multi_map.entry(key) {

            if entry.get_mut().remove(&value) {
                self.count -= 1;            
            }

            if entry.get().is_empty() {
                entry.remove_entry();
            }
        }

        return self.count;
    }
/*
     * Might want to re-think this and return an Error
     * as there isn't a great way to tell the user that a
     * key or value wasn't found
     */
Might want to re-think this and return an Error
as there isn't a great way to tell the user that a
key or value wasn't found
Might want to re - think this and return an Error as there isn ' t a great way to tell the user that a key or value wasn ' t found
pub fn delete(&mut self, key: K, value: V) -> usize {
        if let Occupied(mut entry) = self.multi_map.entry(key) {
            if entry.get_mut().remove(&value) {
                self.count -= 1;            
            }
            if entry.get().is_empty() {
                entry.remove_entry();
            }
        }
        return self.count;
    }
pub fn delete ( & mut self , key : K , value : V ) -> usize { if let Occupied ( mut entry ) = self . multi_map . entry ( key ) { if entry . get_mut ( ) . remove ( & value ) { self . count -= 1 ; } if entry . get ( ) . is_empty ( ) { entry . remove_entry ( ) ; } } return self . count ; }
Might want to re-think this and return an Error
 as there isn't a great way to tell the user that a
 key or value wasn't found
Might want to re - think this and return an Error as there isn ' t a great way to tell the user that a key or value wasn ' t found
&mut self
key
K
value
V