predicates::reflection

Trait 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,