[][src]Struct tdf_utils::list::DoubleLinkedList

pub struct DoubleLinkedList<T: Clone> {
    pub length: u64,
    // some fields omitted
}

Fields

length: u64

Implementations

impl<T: Clone> DoubleLinkedList<T>[src]

pub fn insert(&mut self, val: T)[src]

Insert element @ head

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

remove element @ head

pub fn push(&mut self, val: T)[src]

add element @ tail

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

remove element @ tail

pub fn iter(&self) -> DoubleLinkedListIterator<T>

Important traits for DoubleLinkedListIterator<T>

impl<T: Clone> Iterator for DoubleLinkedListIterator<T> type Item = T;
[src]

Trait Implementations

impl<T: Clone> Clone for DoubleLinkedList<T>[src]

impl<T: Default + Clone> Default for DoubleLinkedList<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for DoubleLinkedList<T>

impl<T> !Send for DoubleLinkedList<T>

impl<T> !Sync for DoubleLinkedList<T>

impl<T> Unpin for DoubleLinkedList<T>

impl<T> !UnwindSafe for DoubleLinkedList<T>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.