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