PushFront

Trait PushFront 

Source
pub trait PushFront: Collection {
    type Output;

    // Required method
    fn push_front(&mut self, element: Self::Item) -> Self::Output;
}
Expand description

Mutable collection where new elements can be pushed on the front.

Required Associated Types§

Source

type Output

The output of the push function.

Required Methods§

Source

fn push_front(&mut self, element: Self::Item) -> Self::Output

Push a new element on the front of the collection.

Implementors§