PopBack

Trait PopBack 

Source
pub trait PopBack: Collection {
    // Required method
    fn pop_back(&mut self) -> Option<Self::Item>;
}
Expand description

Mutable collection where elements can be popped from the back.

Required Methods§

Source

fn pop_back(&mut self) -> Option<Self::Item>

Remove the back element of the collection and return it (if any).

Implementations on Foreign Types§

Source§

impl<T> PopBack for VecDeque<T>

Source§

fn pop_back(&mut self) -> Option<T>

Source§

impl<T> PopBack for Vec<T>

Source§

fn pop_back(&mut self) -> Option<T>

Implementors§