fn remove(&mut self, index: usize) -> T {
        let node = self.arena.remove(index).unwrap();

        self.link(node.prev, node.next);
        if self.head == index {
            self.head = node.next;
        }
        if self.tail == index {
            self.tail = node.prev;
        }

        node.value
    }
/// Removes the element specified by `index`.
Removes the element specified by `index`.
Removes the element specified by ` index ` .
fn remove(&mut self, index: usize) -> T {
        let node = self.arena.remove(index).unwrap();
        self.link(node.prev, node.next);
        if self.head == index {
            self.head = node.next;
        }
        if self.tail == index {
            self.tail = node.prev;
        }
        node.value
    }
fn remove ( & mut self , index : usize ) -> T { let node = self . arena . remove ( index ) . unwrap ( ) ; self . link ( node . prev , node . next ) ; if self . head == index { self . head = node . next ; } if self . tail == index { self . tail = node . prev ; } node . value }
Removes the element specified by `index`.
Removes the element specified by ` index ` .
&mut self
index
usize
&mut self
index
usize