[][src]Struct structures::doublylist::DoublyList

pub struct DoublyList<T> { /* fields omitted */ }

Doubly Linked List

Examples

use structures::doublylist::DoublyList;

let mut list = DoublyList::new();

list.push_front(1);

assert_eq!(list.pop_back(), Some(1));

Methods

impl<T> DoublyList<T>[src]

pub fn new() -> Self[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn front(&self) -> Option<Ref<T>>[src]

pub fn back(&self) -> Option<Ref<T>>[src]

pub fn push_front(&mut self, data: T)[src]

pub fn push_back(&mut self, data: T)[src]

pub fn pop_front(&mut self) -> Option<T>[src]

pub fn pop_back(&mut self) -> Option<T>[src]

Trait Implementations

impl<T> IntoIterator for DoublyList<T>[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?

impl<T> Extend<T> for DoublyList<T>[src]

impl<T> Drop for DoublyList<T>[src]

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

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

Auto Trait Implementations

impl<T> !Send for DoublyList<T>

impl<T> !Sync for DoublyList<T>

Blanket Implementations

impl<T> From for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.