[][src]Trait predicates::name::PredicateNameExt

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

Predicate extension that adds naming predicate expressions.

Provided methods

fn name(self, name: &'static str) -> NamePredicate<Self, Item> where
    Self: Sized

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
    P: Predicate<Item>,
    Item: ?Sized
[src]

Loading content...