Struct predicates::BoxPredicate[][src]

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

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

Implementations

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

pub fn new<P: Predicate<Item>>(inner: P) -> BoxPredicate<Item> where
    P: Send + Sync + 'static, 
[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]

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

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

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

Auto Trait Implementations

impl<Item> !RefUnwindSafe for BoxPredicate<Item>[src]

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

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

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

impl<Item> !UnwindSafe for BoxPredicate<Item>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P, Item> PredicateBooleanExt<Item> for P where
    Item: ?Sized,
    P: Predicate<Item>, 
[src]

impl<P, Item> PredicateNameExt<Item> for P where
    Item: ?Sized,
    P: Predicate<Item>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.