Struct select::predicate::Name [] [src]

pub struct Name<T>(pub T);

Matches Element Node with name T.

Trait Implementations

impl<T: PartialEq> PartialEq for Name<T>
[src]

fn eq(&self, __arg_0: &Name<T>) -> bool

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

fn ne(&self, __arg_0: &Name<T>) -> bool

This method tests for !=.

impl<T: Debug> Debug for Name<T>
[src]

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

Formats the value using the given formatter.

impl<T: Clone> Clone for Name<T>
[src]

fn clone(&self) -> Name<T>

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<T: Copy> Copy for Name<T>
[src]

impl<'a> Predicate for Name<&'a str>
[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>