pub trait Predicate<T> { // Required method fn apply(&self, value: &T) -> bool; }
Trait for types that can be used as predicate functions.
Apply the predicate to the given value.