PushBack

Trait PushBack 

Source
pub trait PushBack: Collection {
    type Output;

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

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

Required Associated Types§

Source

type Output

The output of the push function.

Required Methods§

Source

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

Push a new element on the back of the collection.

Implementations on Foreign Types§

Source§

impl<T> PushBack for VecDeque<T>

Source§

type Output = ()

Source§

fn push_back(&mut self, t: T)

Source§

impl<T> PushBack for Vec<T>

Source§

type Output = ()

Source§

fn push_back(&mut self, t: T)

Implementors§