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]
impl<Item> BoxPredicate<Item> where
Item: ?Sized,
pub fn new<P: Predicate<Item>>(inner: P) -> BoxPredicate<Item> where
P: Send + Sync + 'static,
[src]
pub fn new<P: Predicate<Item>>(inner: P) -> BoxPredicate<Item> where
P: Send + Sync + 'static,
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> Debug for BoxPredicate<Item> where
Item: ?Sized,
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> PredicateReflection for BoxPredicate<Item> where
Item: ?Sized,
[src]
impl<Item> PredicateReflection for BoxPredicate<Item> where
Item: ?Sized,
ⓘ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>(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
[src]
ⓘImportant traits for Box<R>
fn children<'a>(&'a self) -> Box<Iterator<Item = Child<'a>> + 'a>
Nested Predicate
s of the current Predicate
.
impl<Item> Display for BoxPredicate<Item> where
Item: ?Sized,
[src]
impl<Item> Display for BoxPredicate<Item> where
Item: ?Sized,
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> Predicate<Item> for BoxPredicate<Item> where
Item: ?Sized,
[src]
impl<Item> Predicate<Item> for BoxPredicate<Item> where
Item: ?Sized,
Auto Trait Implementations
impl<Item: ?Sized> Send for BoxPredicate<Item>
impl<Item: ?Sized> Send for BoxPredicate<Item>
impl<Item: ?Sized> Sync for BoxPredicate<Item>
impl<Item: ?Sized> Sync for BoxPredicate<Item>