Struct lib::DoublyLinkedList [] [src]

pub struct DoublyLinkedList<T> {
    // some fields omitted
}

Methods

impl<'a, T> DoublyLinkedList<T>

fn new() -> DoublyLinkedList<T>

fn singleton(v: T) -> DoublyLinkedList<T>

fn len(&self) -> usize

fn is_empty(&self) -> bool

fn front_mut(&mut self) -> Option<&'a mut T>

fn front(&self) -> Option<&'a T>

fn back_mut(&mut self) -> Option<&'a mut T>

fn back(&self) -> Option<&'a T>

fn iter(&self) -> Iter<'a, T>

fn iter_mut(&self) -> IterMut<'a, T>

fn push_back(&mut self, val: T)

fn push_front(&mut self, val: T)

fn pop_back(&mut self) -> Option<T>

fn pop_front(&mut self) -> Option<T>

fn insert(&mut self, i: usize, val: T)

fn remove(&mut self, i: usize) -> T

fn append(&mut self, other: &mut DoublyLinkedList<T>)

Trait Implementations

impl<T> Index<usize> for DoublyLinkedList<T>

type Output = T

fn index<'a>(&self, i: usize) -> &'a T

impl<T> IndexMut<usize> for DoublyLinkedList<T>

fn index_mut<'a>(&mut self, i: usize) -> &'a mut T

impl<T> Default for DoublyLinkedList<T>

fn default() -> DoublyLinkedList<T>

impl<T> FromIterator<T> for DoublyLinkedList<T>

fn from_iter<A>(iterator: A) -> Self where A: IntoIterator<Item=T>