pub fn delete(&mut self, index: usize) {
        let EntryData {
            section_id,
            offset_index,
        } = &self.indices_and_sizes[index];
        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.remove(index);
        }
    }
/// Removes the value at the given index. Does nothing when called multiple
/// times in succession.
///
/// # Safety
///
/// This will panic if the index is out of range.
Removes the value at the given index. Does nothing when called multiple
times in succession.
Removes the value at the given index . Does nothing when called multiple times in succession .
pub fn delete(&mut self, index: usize) {
        let EntryData {
            section_id,
            offset_index,
        } = &self.indices_and_sizes[index];
        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.remove(index);
        }
    }
pub fn delete ( & mut self , index : usize ) { let EntryData { section_id , offset_index , } = & self . indices_and_sizes [ index ] ; 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 . remove ( index ) ; } }
Removes the value at the given index.
Removes the value at the given index .
&mut self
index
usize
safety
This will panic if the index is out of range.
This will panic if the index is out of range .