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
fn push_front(&mut self, val: T) -> Option<Self::PushedOut>
Adds the value to the front of the collection.
Implementors
impl<T> PushFront<T> for LinkedList<T>
impl<T> PushFront<LinkedList<T>> for LinkedList<T>
impl<T> PushFront<T> for VecDeque<T>
impl<T> PushFront<T> for BList<T>