[−][src]Struct tdf_utils::list::DoubleLinkedList
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]
Important traits for DoubleLinkedListIterator<T>
impl<T: Clone> Iterator for DoubleLinkedListIterator<T> type Item = T;
Trait Implementations
impl<T: Clone> Clone for DoubleLinkedList<T>
[src]
fn clone(&self) -> DoubleLinkedList<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Default + Clone> Default for DoubleLinkedList<T>
[src]
fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,