[][src]Trait libextra::vec::VecUtils

pub trait VecUtils<T> {
    fn unshift(&mut self, v: T);
fn shift(&mut self) -> T;
fn count(&self, f: &dyn Fn(&T) -> bool) -> usize; }

Required methods

fn unshift(&mut self, v: T)

fn shift(&mut self) -> T

fn count(&self, f: &dyn Fn(&T) -> bool) -> usize

Replaces old Iterator::count

Loading content...

Implementations on Foreign Types

impl<T> VecUtils<T> for Vec<T>
[src]

fn count(&self, f: &dyn Fn(&T) -> bool) -> usize
[src]

Replaces old Iterator::count

Loading content...

Implementors

Loading content...