Trait inline_c::predicates::PredicateNameExt[][src]

pub trait PredicateNameExt<Item>: Predicate<Item> where
    Item: ?Sized
{ pub fn name(self, name: &'static str) -> NamePredicate<Self, Item> { ... } }

Predicate extension that adds naming predicate expressions.

Provided methods

pub fn name(self, name: &'static str) -> NamePredicate<Self, Item>[src]

Name a predicate expression.

Examples

use predicates::prelude::*;

let predicate_fn = predicate::str::is_empty().not().name("non-empty");
println!("{}", predicate_fn);
Loading content...

Implementors

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

Loading content...