Struct doubly::DoublyLinkedList
[−]
[src]
pub struct DoublyLinkedList<T> { /* fields omitted */ }
Methods
impl<'a, T> DoublyLinkedList<T>
[src]
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>
[src]
type Output = T
The returned type after indexing
fn index(&self, i: usize) -> &T
The method for the indexing (container[index]
) operation
impl<T> IndexMut<usize> for DoublyLinkedList<T>
[src]
fn index_mut(&mut self, i: usize) -> &mut T
The method for the mutable indexing (container[index]
) 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>,
A: IntoIterator<Item = T>,
Creates a value from an iterator. Read more