pub trait PredicateExt: Sized + Predicate {
// Provided methods
fn and<R>(self, right: R) -> And<Self, R>
where R: Predicate<Subject = Self::Subject> { ... }
fn or<R>(self, right: R) -> Or<Self, R>
where R: Predicate<Subject = Self::Subject> { ... }
fn not(self) -> Not<Self> { ... }
fn boxed(self) -> Box<dyn Predicate<Subject = Self::Subject> + Sync + Send>
where Self: Send + Sync + 'static { ... }
}Expand description
Extension trait for fluent predicate composition.
Provided Methods§
Sourcefn and<R>(self, right: R) -> And<Self, R>
fn and<R>(self, right: R) -> And<Self, R>
Combines this predicate with another using AND logic.
Returns Cacheable only if both predicates return Cacheable.
Sourcefn or<R>(self, right: R) -> Or<Self, R>
fn or<R>(self, right: R) -> Or<Self, R>
Combines this predicate with another using OR logic.
Returns Cacheable if either predicate returns Cacheable.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.