Trait select::predicate::Predicate [] [src]

pub trait Predicate: Sized {
    fn matches(&self, node: &Node) -> bool;

    fn or<T: Predicate>(self, other: T) -> Or<Self, T> { ... }
    fn and<T: Predicate>(self, other: T) -> And<Self, T> { ... }
    fn not(self) -> Not<Self> { ... }
}

A trait implemented by all Node matchers.

Required Methods

fn matches(&self, node: &Node) -> bool

Provided Methods

fn or<T: Predicate>(self, other: T) -> Or<Self, T>

fn and<T: Predicate>(self, other: T) -> And<Self, T>

fn not(self) -> Not<Self>

Implementors