Trait push_trait::PushFront [] [src]

pub trait PushFront<T>: Push<T> {
    fn push_front(&mut self, val: T) -> Option<Self::PushedOut>;
}

A mutable collection onto which items can be added "at the beginning."

"At the beginning" is defined in a way such that truncating the collection to the item's length after a push will retain the item.

Required Methods

Adds the value to the front of the collection.

Implementors