Module preds

Source
Expand description

Provided implementations for common predicates.

Structs§

All
Accepts iterators with all elements accepted by a given predicate.
AllAdj
Accepts iterators with all two adjacent elements accepted by a given pair predicate.
Any
Accepts iterators with any element accepted by a given predicate.
AnyAdj
Accepts iterators with any two adjacent elements accepted by a given pair predicate.
Decreasing
Accepts pairs (a, b) where a >= b.
Even
Accepts even integers.
False
Accepts nothing.
Increasing
Accepts pairs (a, b) where a <= b.
Odd
Accepts odd integers.
True
Accepts everything.

Type Aliases§

Ascending
Accepts iterators where each element is less than or equal to the next.
Descending
Accepts iterators where each element is greater than or equal to the next.