Trait push_trait::ordered::PushFront [] [src]

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

A trait for moving data onto the front of a collection.

Some collections have two locations to push values; for these collections, we assign one location as the "back" and the other as the "front." See PushBack for more information, or use Push by itself if you don't care where values are pushed.

Required Methods

Pushes the value onto the front, yielding the value that was pushed out, if any.

Implementors