fn remove_entry(&mut self, index: usize) -> Option<OccupiedEntry<EntryData>> {
        use self::Entry::*;

        let (previous_index, next_index) = match &self.entries[index] {
            Occupied(entry) => (entry.previous, entry.next),
            Vacant(_) => return None,
        };
        Some(self.remove_helper(previous_index, index, next_index))
    }
/// Removes and returns the entry at the given index, if it exists.
///
/// If the index refers to an index not in the list anymore or if the index has been
/// invalidated, then [`None`] will be returned and the list will be unaffected.
Removes and returns the entry at the given index, if it exists.
If the index refers to an index not in the list anymore or if the index has been
invalidated, then [`None`] will be returned and the list will be unaffected.
Removes and returns the entry at the given index if it exists . If the index refers to an index not in the list anymore or if the index has been invalidated then [ ` None ` ] will be returned and the list will be unaffected .
fn remove_entry(&mut self, index: usize) -> Option<OccupiedEntry<EntryData>> {
        use self::Entry::*;
        let (previous_index, next_index) = match &self.entries[index] {
            Occupied(entry) => (entry.previous, entry.next),
            Vacant(_) => return None,
        };
        Some(self.remove_helper(previous_index, index, next_index))
    }
fn remove_entry ( & mut self , index : usize ) -> Option < OccupiedEntry < EntryData > > { use self :: Entry :: * ; let ( previous_index , next_index ) = match & self . entries [ index ] { Occupied ( entry ) => ( entry . previous , entry . next ) , Vacant ( _ ) => return None , } ; Some ( self . remove_helper ( previous_index , index , next_index ) ) }
Removes and returns the entry at the given index, if it exists.
Removes and returns the entry at the given index if it exists .
&mut self
index
usize
&mut self
index
usize