Trait predicates::reflection::PredicateReflection

source ·
pub trait PredicateReflection: Display {
    // Provided methods
    fn parameters<'a>(&'a self) -> Box<dyn Iterator<Item = Parameter<'a>> + 'a> { ... }
    fn children<'a>(&'a self) -> Box<dyn Iterator<Item = Child<'a>> + 'a> { ... }
}
Expand description

Introspect the state of a Predicate.

Provided Methods§

source

fn parameters<'a>(&'a self) -> Box<dyn Iterator<Item = Parameter<'a>> + 'a>

Parameters of the current Predicate.

source

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = Child<'a>> + 'a>

Nested Predicates of the current Predicate.

Implementors§

source§

impl PredicateReflection for BooleanPredicate

source§

impl PredicateReflection for IsClosePredicate

source§

impl PredicateReflection for BinaryFilePredicate

source§

impl PredicateReflection for ExistencePredicate

source§

impl PredicateReflection for FileTypePredicate

source§

impl PredicateReflection for StrFilePredicate

source§

impl PredicateReflection for ContainsPredicate

source§

impl PredicateReflection for DifferencePredicate

source§

impl PredicateReflection for EndsWithPredicate

source§

impl PredicateReflection for IsEmptyPredicate

source§

impl PredicateReflection for MatchesPredicate

source§

impl PredicateReflection for RegexPredicate

source§

impl PredicateReflection for StartsWithPredicate

source§

impl<F, T> PredicateReflection for FnPredicate<F, T>
where F: Fn(&T) -> bool, T: ?Sized,

source§

impl<Item> PredicateReflection for BoxPredicate<Item>
where Item: ?Sized,

source§

impl<M1, M2, Item> PredicateReflection for AndPredicate<M1, M2, Item>
where M1: Predicate<Item>, M2: Predicate<Item>, Item: ?Sized,

source§

impl<M1, M2, Item> PredicateReflection for OrPredicate<M1, M2, Item>
where M1: Predicate<Item>, M2: Predicate<Item>, Item: ?Sized,

source§

impl<M, Item> PredicateReflection for NotPredicate<M, Item>
where M: Predicate<Item>, Item: ?Sized,

source§

impl<M, Item> PredicateReflection for NamePredicate<M, Item>
where M: Predicate<Item>, Item: ?Sized,

source§

impl<P> PredicateReflection for FileContentPredicate<P>
where P: Predicate<[u8]>,

source§

impl<P> PredicateReflection for NormalizedPredicate<P>
where P: Predicate<str>,

source§

impl<P> PredicateReflection for TrimPredicate<P>
where P: Predicate<str>,

source§

impl<P> PredicateReflection for Utf8Predicate<P>
where P: Predicate<str>,

source§

impl<T> PredicateReflection for HashableInPredicate<T>
where T: Hash + Eq + Debug,

source§

impl<T> PredicateReflection for InPredicate<T>
where T: PartialEq + Debug,

source§

impl<T> PredicateReflection for OrdInPredicate<T>
where T: Ord + Debug,

source§

impl<T> PredicateReflection for EqPredicate<T>
where T: Debug + PartialEq,

source§

impl<T> PredicateReflection for OrdPredicate<T>
where T: Debug + PartialOrd,