Struct predicates::BoxPredicate [] [src]

pub struct BoxPredicate<T: ?Sized>(_);

Predicate that wraps another Predicate as a trait object, allowing sized storage of predicate types.

Methods

impl<T: ?Sized> BoxPredicate<T>
[src]

Creates a new BoxPredicate, a wrapper around a dynamically-dispatched Predicate type with useful trait impls.

Trait Implementations

impl<T> Debug for BoxPredicate<T>
[src]

Formats the value using the given formatter.

impl<T> Display for BoxPredicate<T>
[src]

Formats the value using the given formatter. Read more

impl<T: ?Sized> Predicate for BoxPredicate<T>
[src]

The type that this Predicate will accept for evaluating.

Execute this Predicate against variable, returning the resulting boolean. Read more

Compute the logical AND of two Predicate results, returning the result. Read more

Compute the logical OR of two Predicate results, returning the result. Read more

Compute the logical NOT of a Predicate, returning the result. Read more

Returns a BoxPredicate wrapper around this Predicate type. Read more