Struct doubly::DoublyLinkedList [] [src]

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

Methods

impl<'a, T> DoublyLinkedList<T>
[src]

fn new() -> DoublyLinkedList<T>

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

fn len(&self) -> usize

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 concat(&mut self, other: DoublyLinkedList<T>)

Trait Implementations

impl<T> Index<usize> for DoublyLinkedList<T>
[src]

type Output = T

The returned type after indexing

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

The method for the indexing (Foo[Bar]) operation

impl<T> IndexMut<usize> for DoublyLinkedList<T>
[src]

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

The method for the indexing (Foo[Bar]) operation

impl<T> Default for DoublyLinkedList<T>
[src]

fn default() -> DoublyLinkedList<T>

Returns the "default value" for a type. Read more

impl<T> FromIterator<T> for DoublyLinkedList<T>
[src]

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

Creates a value from an iterator. Read more