Module predicates::function

source ·
Expand description

Definition of Predicate for wrapping a Fn(&T) -> bool


  • Predicate that wraps a function over a reference that returns a bool. This type is returned by the predicate::function function.


  • Creates a new predicate that wraps over the given function. The returned type implements Predicate and therefore has all combinators available to it.