Struct predicates::boolean::NotPredicate
[−]
[src]
pub struct NotPredicate<M, Item> where
M: Predicate<Item>,
Item: ?Sized, { /* fields omitted */ }
Predicate that returns a Predicate
taking the logical NOT of the result.
This is created by the Predicate::not
function.
Methods
impl<M, Item> NotPredicate<M, Item> where
M: Predicate<Item>,
Item: ?Sized,
[src]
M: Predicate<Item>,
Item: ?Sized,
pub fn new(inner: M) -> NotPredicate<M, Item>
[src]
Create a new NotPredicate
over predicate inner
.
Trait Implementations
impl<M: Debug, Item> Debug for NotPredicate<M, Item> where
M: Predicate<Item>,
Item: Debug + ?Sized,
[src]
M: Predicate<Item>,
Item: Debug + ?Sized,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<M, Item> Predicate<Item> for NotPredicate<M, Item> where
M: Predicate<Item>,
Item: ?Sized,
[src]
M: Predicate<Item>,
Item: ?Sized,
fn eval(&self, item: &Item) -> bool
[src]
Execute this Predicate
against variable
, returning the resulting boolean. Read more
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
Self: Sized,
[src]
B: Predicate<Item>,
Self: Sized,
Compute the logical AND of two Predicate
results, returning the result. Read more
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where
B: Predicate<Item>,
Self: Sized,
[src]
B: Predicate<Item>,
Self: Sized,
Compute the logical OR of two Predicate
results, returning the result. Read more
fn not(self) -> NotPredicate<Self, Item> where
Self: Sized,
[src]
Self: Sized,
Compute the logical NOT of a Predicate
, returning the result. Read more
fn boxed(self) -> BoxPredicate<Item> where
Self: Sized + Send + Sync + 'static,
[src]
Self: Sized + Send + Sync + 'static,
Returns a BoxPredicate
wrapper around this Predicate
type. Read more
Auto Trait Implementations
impl<M, Item: ?Sized> Send for NotPredicate<M, Item> where
Item: Send,
M: Send,
Item: Send,
M: Send,
impl<M, Item: ?Sized> Sync for NotPredicate<M, Item> where
Item: Sync,
M: Sync,
Item: Sync,
M: Sync,