Trait std_ext::VecExt

source ·
pub trait VecExt<T> {
    // Required methods
    fn any<F: Fn(&T) -> bool>(&self, f: F) -> bool;
    fn fold<F, U>(&self, f: F, init: U) -> U
       where F: Fn(U, &T) -> U;
}

Required Methods§

source

fn any<F: Fn(&T) -> bool>(&self, f: F) -> bool

source

fn fold<F, U>(&self, f: F, init: U) -> U
where F: Fn(U, &T) -> U,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> VecExt<T> for Vec<T>

source§

fn any<F: Fn(&T) -> bool>(&self, f: F) -> bool

source§

fn fold<F, U>(&self, f: F, init: U) -> U
where F: Fn(U, &T) -> U,

Implementors§