[][src]Struct select::predicate::Child

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: Predicate, B: Predicate> Predicate for Child<A, B>[src]

fn or<T: Predicate>(self, other: T) -> Or<Self, T> where
    Self: Sized
[src]

fn and<T: Predicate>(self, other: T) -> And<Self, T> where
    Self: Sized
[src]

fn not(self) -> Not<Self> where
    Self: Sized
[src]

fn child<T: Predicate>(self, other: T) -> Child<Self, T> where
    Self: Sized
[src]

fn descendant<T: Predicate>(self, other: T) -> Descendant<Self, T> where
    Self: Sized
[src]

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

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

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

Performs copy-assignment from source. Read more

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

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

Auto Trait Implementations

impl<A, B> Unpin for Child<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> Sync for Child<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Send for Child<A, B> where
    A: Send,
    B: Send

impl<A, B> RefUnwindSafe for Child<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

impl<A, B> UnwindSafe for Child<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

Blanket Implementations

impl<F> Predicate for F where
    F: Fn(&Node) -> bool
[src]

fn or<T: Predicate>(self, other: T) -> Or<Self, T> where
    Self: Sized
[src]

fn and<T: Predicate>(self, other: T) -> And<Self, T> where
    Self: Sized
[src]

fn not(self) -> Not<Self> where
    Self: Sized
[src]

fn child<T: Predicate>(self, other: T) -> Child<Self, T> where
    Self: Sized
[src]

fn descendant<T: Predicate>(self, other: T) -> Descendant<Self, T> where
    Self: Sized
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]