pub fn remove(&mut self, index: ItemIndex) -> Option<T> {
        let old = self.items.remove(&index);
        let item = T::default();

        self.insert(index, item);

        old
    }
/// Removes an element with a given index, and returns the removed
/// element (if it existed in the tree).
Removes an element with a given index, and returns the removed
element (if it existed in the tree).
Removes an element with a given index and returns the removed element ( if it existed in the tree ) .
pub fn remove(&mut self, index: ItemIndex) -> Option<T> {
        let old = self.items.remove(&index);
        let item = T::default();
        self.insert(index, item);
        old
    }
pub fn remove ( & mut self , index : ItemIndex ) -> Option < T > { let old = self . items . remove ( & index ) ; let item = T :: default ( ) ; self . insert ( index , item ) ; old }
Removes an element with a given index, and returns the removed
element (if it existed in the tree).
Removes an element with a given index and returns the removed element ( if it existed in the tree ) .
&mut self
index
ItemIndex