Trait cc_traits::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 Vec<T>

§

type Output = ()

source§

fn push_back(&mut self, t: T)

source§

impl<T> PushBack for VecDeque<T>

§

type Output = ()

source§

fn push_back(&mut self, t: T)

Implementors§