Module predicates::function
source · Expand description
Definition of Predicate
for wrapping a Fn(&T) -> bool
Structs
- Predicate that wraps a function over a reference that returns a
bool
. This type is returned by thepredicate::function
function.
Functions
- Creates a new predicate that wraps over the given function. The returned type implements
Predicate
and therefore has all combinators available to it.