Skip to main content

Module stateful_bi_predicate

Module stateful_bi_predicate 

Source
Expand description

§StatefulBiPredicate Abstraction

Provides bi-predicate wrappers for closures that implement FnMut(&T, &U) -> bool. A stateful bi-predicate can update its own internal state while testing two borrowed input values.

Use BiPredicate for immutable Fn(&T, &U) -> bool predicates and StatefulBiPredicate when the predicate needs native FnMut semantics, such as counters, rolling windows, sampling, or stateful filters over pairs of values.

Structs§

ArcStatefulBiPredicate
An Arc-based stateful bi-predicate with thread-safe shared ownership.
BoxStatefulBiPredicate
A Box-based stateful bi-predicate with single ownership.
RcStatefulBiPredicate
An Rc-based stateful bi-predicate with single-threaded shared ownership.

Traits§

FnStatefulBiPredicateOps
Extension trait providing logical composition methods for stateful closures.
StatefulBiPredicate
A stateful bi-predicate trait for testing pairs with mutable internal state.