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
fn push_front(&mut self, item: Self::Item) where Self: AddRemove
Pushes the given item onto the front of the deque.
fn back_mut(&mut self) -> Option<&mut Self::Item> where Self: Mutate
Returns a mutable reference to the item at the back of the deque.
Returns None
if the deque is empty.
Implementors
impl<T> FifoDeque for LinkedList<T>
impl<T> FifoDeque for VecDeque<T>