Struct predicates::BoxPredicate [] [src]

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

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

Methods

impl<Item> BoxPredicate<Item> where
    Item: ?Sized
[src]

[src]

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

Trait Implementations

impl<Item> Debug for BoxPredicate<Item> where
    Item: ?Sized
[src]

[src]

Formats the value using the given formatter. Read more

impl<Item> Display for BoxPredicate<Item> where
    Item: ?Sized
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns a BoxPredicate wrapper around this Predicate type. Read more

Auto Trait Implementations

impl<Item: ?Sized> Send for BoxPredicate<Item>

impl<Item: ?Sized> Sync for BoxPredicate<Item>