pub fn remove_by_name(&mut self, row_id: RowId, name: &str) {
        if let Some(entries) = self.by_row_id.get(&row_id) {
            for entry in entries.iter() {
                if let Some(row_ids) = self.by_name.get_mut(&entry.name) {
                    row_ids.remove(&row_id);
                }
                if let Some(row_ids) = self.by_value.get_mut(&entry) {
                    row_ids.remove(&row_id);
                }
            }
        }

        if let Some(entries) = self.by_row_id.get_mut(&row_id) {
            entries.retain(|entry| entry.name != name);
        }

        if let Some(entries) = self.by_row_id.get(&row_id) {
            for entry in entries.iter() {
                if let Some(row_ids) = self.by_name.get_mut(&entry.name) {
                    row_ids.insert(row_id);
                }
                if let Some(row_ids) = self.by_value.get_mut(&entry) {
                    row_ids.insert(row_id);
                }
            }
        }
    }
/// Removes all entries with name 'name' and row 'row_id'. Does not delete the whole row and
/// leaves entries with other names.
Removes all entries with name 'name' and row 'row_id'. Does not delete the whole row and
leaves entries with other names.
Removes all entries with name ' name ' and row ' row_id ' . Does not delete the whole row and leaves entries with other names .
pub fn remove_by_name(&mut self, row_id: RowId, name: &str) {
        if let Some(entries) = self.by_row_id.get(&row_id) {
            for entry in entries.iter() {
                if let Some(row_ids) = self.by_name.get_mut(&entry.name) {
                    row_ids.remove(&row_id);
                }
                if let Some(row_ids) = self.by_value.get_mut(&entry) {
                    row_ids.remove(&row_id);
                }
            }
        }
        if let Some(entries) = self.by_row_id.get_mut(&row_id) {
            entries.retain(|entry| entry.name != name);
        }
        if let Some(entries) = self.by_row_id.get(&row_id) {
            for entry in entries.iter() {
                if let Some(row_ids) = self.by_name.get_mut(&entry.name) {
                    row_ids.insert(row_id);
                }
                if let Some(row_ids) = self.by_value.get_mut(&entry) {
                    row_ids.insert(row_id);
                }
            }
        }
    }
pub fn remove_by_name ( & mut self , row_id : RowId , name : & str ) { if let Some ( entries ) = self . by_row_id . get ( & row_id ) { for entry in entries . iter ( ) { if let Some ( row_ids ) = self . by_name . get_mut ( & entry . name ) { row_ids . remove ( & row_id ) ; } if let Some ( row_ids ) = self . by_value . get_mut ( & entry ) { row_ids . remove ( & row_id ) ; } } } if let Some ( entries ) = self . by_row_id . get_mut ( & row_id ) { entries . retain ( | entry | entry . name != name ) ; } if let Some ( entries ) = self . by_row_id . get ( & row_id ) { for entry in entries . iter ( ) { if let Some ( row_ids ) = self . by_name . get_mut ( & entry . name ) { row_ids . insert ( row_id ) ; } if let Some ( row_ids ) = self . by_value . get_mut ( & entry ) { row_ids . insert ( row_id ) ; } } } }
Removes all entries with name 'name' and row 'row_id'.
Removes all entries with name ' name ' and row ' row_id ' .
&mut self
row_id
RowId
name
&str
&mut self
row_id
RowId
name
&str