Struct select::predicate::Or [] [src]

pub struct Or<A, B>(pub A, pub B);

Matches if either inner Predicate A or B matches the Node.

Trait Implementations

impl<A: PartialEq, B: PartialEq> PartialEq for Or<A, B>
[src]

fn eq(&self, __arg_0: &Or<A, B>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Or<A, B>) -> bool

This method tests for !=.

impl<A: Debug, B: Debug> Debug for Or<A, B>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<A: Clone, B: Clone> Clone for Or<A, B>
[src]

fn clone(&self) -> Or<A, B>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<A: Copy, B: Copy> Copy for Or<A, B>
[src]

impl<A: Predicate, B: Predicate> Predicate for Or<A, B>
[src]

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>