Struct select::predicate::Child
[−]
[src]
pub struct Child<A, B>(pub A, pub B);
Matches if inner Predicate B
matches the node and A
matches the parent
of the node.
Trait Implementations
impl<A: Copy, B: Copy> Copy for Child<A, B>
[src]
impl<A: Clone, B: Clone> Clone for Child<A, B>
[src]
fn clone(&self) -> Child<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: Debug, B: Debug> Debug for Child<A, B>
[src]
impl<A: PartialEq, B: PartialEq> PartialEq for Child<A, B>
[src]
fn eq(&self, __arg_0: &Child<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: &Child<A, B>) -> bool
This method tests for !=
.
impl<A: Predicate, B: Predicate> Predicate for Child<A, B>
[src]
fn matches(&self, node: &Node) -> bool
fn or<T: Predicate>(self, other: T) -> Or<Self, T> where
Self: Sized,
Self: Sized,
fn and<T: Predicate>(self, other: T) -> And<Self, T> where
Self: Sized,
Self: Sized,
fn not(self) -> Not<Self> where
Self: Sized,
Self: Sized,
fn child<T: Predicate>(self, other: T) -> Child<Self, T> where
Self: Sized,
Self: Sized,
fn descendant<T: Predicate>(self, other: T) -> Descendant<Self, T> where
Self: Sized,
Self: Sized,