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§
- ArcStateful
BiPredicate - An Arc-based stateful bi-predicate with thread-safe shared ownership.
- BoxStateful
BiPredicate - A Box-based stateful bi-predicate with single ownership.
- RcStateful
BiPredicate - An Rc-based stateful bi-predicate with single-threaded shared ownership.
Traits§
- FnStateful
BiPredicate Ops - Extension trait providing logical composition methods for stateful closures.
- Stateful
BiPredicate - A stateful bi-predicate trait for testing pairs with mutable internal state.