VecExt2

Trait VecExt2 

Source
pub trait VecExt2<T> {
    // Required method
    fn pop_first(&mut self) -> Option<T>;
}

Required Methods§

Source

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

Pop the first element of the vector, returning None if empty.

Implementations on Foreign Types§

Source§

impl<T> VecExt2<T> for Vec<T>

Source§

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

Implementors§