[−][src]Struct structures::doublylist::DoublyList
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl<T> Extend<T> for DoublyList<T>
[src]
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
[src]
impl<T> Drop for DoublyList<T>
[src]
impl<T> Default for DoublyList<T>
[src]
impl<T> FromIterator<T> for DoublyList<T>
[src]
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
[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]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,