Expand description
Logical combinators for composing predicates.
This module provides generic combinators that work with any Predicate
implementation, regardless of the protocol.
§Extension Trait
The PredicateExt trait provides fluent methods for predicate composition:
ⓘ
use hitbox_core::predicate::{Neutral, PredicateExt};
let predicate = Neutral::new()
.and(predicate1)
.or(predicate2)
.not();Structs§
- And
- Requires both predicates to return
Cacheable. - Not
- Inverts a predicate result.
- Or
- Requires either predicate to return
Cacheable.
Traits§
- Predicate
Ext - Extension trait for fluent predicate composition.