Trait eclectic::Deque [] [src]

pub trait Deque: Queue {
    fn back(&self) -> Option<&Self::Item>;
    fn pop_back(&mut self) -> Option<Self::Item> where Self: AddRemove;
}

A double-ended queue.

Required Methods

fn back(&self) -> Option<&Self::Item>

Returns a reference to the item at the back of the deque.

Returns None if the deque is empty.

fn pop_back(&mut self) -> Option<Self::Item> where Self: AddRemove

Removes the item at the back of the deque and returns it.

Returns None if the deque was empty.

Implementors