Predicate

Trait Predicate 

Source
pub trait Predicate<T> {
    // Required method
    fn test(&self, value: &T) -> bool;
}

Required Methods§

Source

fn test(&self, value: &T) -> bool

Implementors§

Source§

impl<F, T> Predicate<T> for F
where F: Fn(&T) -> bool,