Struct predicates::constant::BooleanPredicate
source · pub struct BooleanPredicate { /* private fields */ }
Expand description
Predicate that always returns a constant (boolean) result.
This is created by the predicate::always
and predicate::never
functions.
Trait Implementations
sourceimpl Clone for BooleanPredicate
impl Clone for BooleanPredicate
sourcefn clone(&self) -> BooleanPredicate
fn clone(&self) -> BooleanPredicate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BooleanPredicate
impl Debug for BooleanPredicate
sourceimpl Display for BooleanPredicate
impl Display for BooleanPredicate
sourceimpl PartialEq<BooleanPredicate> for BooleanPredicate
impl PartialEq<BooleanPredicate> for BooleanPredicate
sourcefn eq(&self, other: &BooleanPredicate) -> bool
fn eq(&self, other: &BooleanPredicate) -> bool
sourceimpl<Item: ?Sized> Predicate<Item> for BooleanPredicate
impl<Item: ?Sized> Predicate<Item> for BooleanPredicate
impl Copy for BooleanPredicate
impl Eq for BooleanPredicate
impl StructuralEq for BooleanPredicate
impl StructuralPartialEq for BooleanPredicate
Auto Trait Implementations
impl RefUnwindSafe for BooleanPredicate
impl Send for BooleanPredicate
impl Sync for BooleanPredicate
impl Unpin for BooleanPredicate
impl UnwindSafe for BooleanPredicate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
sourcefn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical AND of two
Predicate
results, returning the result. Read moresourcefn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical OR of two
Predicate
results, returning the result. Read moresourcefn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
fn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
Compute the logical NOT of a
Predicate
, returning the result. Read more