[][src]Module predicates::function

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

Structs

FnPredicate

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

Functions

function

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