Struct predicates::constant::BooleanPredicate [−][src]
pub struct BooleanPredicate<Item> { /* fields omitted */ }
Predicate that always returns a constant (boolean) result.
This is created by the predicate::always
and predicate::never
functions.
Trait Implementations
impl<Item: Debug> Debug for BooleanPredicate<Item>
[src]
impl<Item: Debug> Debug for BooleanPredicate<Item>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Item: Clone> Clone for BooleanPredicate<Item>
[src]
impl<Item: Clone> Clone for BooleanPredicate<Item>
fn clone(&self) -> BooleanPredicate<Item>
[src]
fn clone(&self) -> BooleanPredicate<Item>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<Item: Copy> Copy for BooleanPredicate<Item>
[src]
impl<Item: Copy> Copy for BooleanPredicate<Item>
impl<Item: PartialEq> PartialEq for BooleanPredicate<Item>
[src]
impl<Item: PartialEq> PartialEq for BooleanPredicate<Item>
fn eq(&self, other: &BooleanPredicate<Item>) -> bool
[src]
fn eq(&self, other: &BooleanPredicate<Item>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BooleanPredicate<Item>) -> bool
[src]
fn ne(&self, other: &BooleanPredicate<Item>) -> bool
This method tests for !=
.
impl<Item: Eq> Eq for BooleanPredicate<Item>
[src]
impl<Item: Eq> Eq for BooleanPredicate<Item>
impl<Item> Predicate<Item> for BooleanPredicate<Item>
[src]
impl<Item> Predicate<Item> for BooleanPredicate<Item>
fn eval(&self, _variable: &Item) -> bool
[src]
fn eval(&self, _variable: &Item) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
fn find_case<'a>(&'a self, expected: bool, variable: &Item) -> Option<Case<'a>>
[src]
fn find_case<'a>(&'a self, expected: bool, variable: &Item) -> Option<Case<'a>>
Find a case that proves this predicate as expected
when run against variable
.
impl<Item> PredicateReflection for BooleanPredicate<Item>
[src]
impl<Item> PredicateReflection for BooleanPredicate<Item>
ⓘImportant traits for Box<R>fn parameters<'a>(&'a self) -> Box<Iterator<Item = Parameter<'a>> + 'a>
[src]
ⓘImportant traits for Box<R>
fn parameters<'a>(&'a self) -> Box<Iterator<Item = Parameter<'a>> + 'a>
Parameters of the current Predicate
.
ⓘImportant traits for Box<R>fn children(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
[src]
ⓘImportant traits for Box<R>
fn children(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
Nested Predicate
s of the current Predicate
.
impl<Item> Display for BooleanPredicate<Item>
[src]
impl<Item> Display for BooleanPredicate<Item>
Auto Trait Implementations
impl<Item> Send for BooleanPredicate<Item> where
Item: Send,
impl<Item> Send for BooleanPredicate<Item> where
Item: Send,
impl<Item> Sync for BooleanPredicate<Item> where
Item: Sync,
impl<Item> Sync for BooleanPredicate<Item> where
Item: Sync,