Trait eclectic::FifoDeque [] [src]

pub trait FifoDeque: FifoQueue + Deque {
    fn push_front(&mut self, item: Self::Item) where Self: AddRemove;
    fn back_mut(&mut self) -> Option<&mut Self::Item> where Self: Mutate;
}

A double-ended first-in, first-out queue.

Required Methods

Pushes the given item onto the front of the deque.

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

Returns None if the deque is empty.

Implementors