Trait inline_c::predicates::PredicateNameExt [−][src]
pub trait PredicateNameExt<Item>: Predicate<Item> where
Item: ?Sized, { fn name(self, name: &'static str) -> NamePredicate<Self, Item> { ... } }
Expand description
Predicate
extension that adds naming predicate expressions.
Provided methods
fn name(self, name: &'static str) -> NamePredicate<Self, Item>
[src]
Expand description
Name a predicate expression.
Examples
use predicates::prelude::*; let predicate_fn = predicate::str::is_empty().not().name("non-empty"); println!("{}", predicate_fn);
Implementors
impl<P, Item> PredicateNameExt<Item> for P where
Item: ?Sized,
P: Predicate<Item>,
[src]
Item: ?Sized,
P: Predicate<Item>,