Module predicate
Expand description
Predicate factories
Modules§
Functions§
- always
- Creates a new
Predicate
that always returnstrue
. - eq
- Creates a new predicate that will return
true
when the givenvariable
is equal to a pre-defined value. - function
- Creates a new predicate that wraps over the given function. The returned
type implements
Predicate
and therefore has all combinators available to it. - ge
- Creates a new predicate that will return
true
when the givenvariable
is greater than or equal to a pre-defined value. - gt
- Creates a new predicate that will return
true
when the givenvariable
is greater than a pre-defined value. - in_hash
- Creates a new predicate that will return
true
when the givenvariable
is contained with the set of items provided. - in_iter
- Creates a new predicate that will return
true
when the givenvariable
is contained with the set of items provided. - le
- Creates a new predicate that will return
true
when the givenvariable
is less than or equal to a pre-defined value. - lt
- Creates a new predicate that will return
true
when the givenvariable
is less than a pre-defined value. - ne
- Creates a new predicate that will return
true
when the givenvariable
is not equal to a pre-defined value. - never
- Creates a new
Predicate
that always returnsfalse
.