pub fn delete_all(&mut self) {
        for EntryData {
            section_id,
            offset_index,
        } in &self.indices_and_sizes
        {
            let (offset, size) = MutableMultiValue::get_index_and_size(&self.offsets, *section_id, *offset_index);
            if size > 0 {
                self.section
                    .get_mut(section_id)
                    .expect("sections does not have section id from section ids")
                    .0
                    .drain(offset..offset + size);
                Self::set_offset(&mut self.offsets, *section_id, *offset_index, 0);
            }
        }
        self.indices_and_sizes.clear();
    }
/// Removes all values. Does nothing when called multiple times in
/// succession.
Removes all values. Does nothing when called multiple times in
succession.
Removes all values . Does nothing when called multiple times in succession .
pub fn delete_all(&mut self) {
        for EntryData {
            section_id,
            offset_index,
        } in &self.indices_and_sizes
        {
            let (offset, size) = MutableMultiValue::get_index_and_size(&self.offsets, *section_id, *offset_index);
            if size > 0 {
                self.section
                    .get_mut(section_id)
                    .expect("sections does not have section id from section ids")
                    .0
                    .drain(offset..offset + size);
                Self::set_offset(&mut self.offsets, *section_id, *offset_index, 0);
            }
        }
        self.indices_and_sizes.clear();
    }
pub fn delete_all ( & mut self ) { for EntryData { section_id , offset_index , } in & self . indices_and_sizes { let ( offset , size ) = MutableMultiValue :: get_index_and_size ( & self . offsets , * section_id , * offset_index ) ; if size > 0 { self . section . get_mut ( section_id ) . expect ( " " ) . 0 . drain ( offset .. offset + size ) ; Self :: set_offset ( & mut self . offsets , * section_id , * offset_index , 0 ) ; } } self . indices_and_sizes . clear ( ) ; }
Removes all values.
Removes all values .
&mut self