Struct select::predicate::Attr [] [src]

pub struct Attr<N, V>(pub N, pub V);

Matches Element Node containing attribute N with value V if V is an &str, or any value if V is ().

Trait Implementations

impl<N: PartialEq, V: PartialEq> PartialEq for Attr<N, V>
[src]

fn eq(&self, __arg_0: &Attr<N, V>) -> bool

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

fn ne(&self, __arg_0: &Attr<N, V>) -> bool

This method tests for !=.

impl<N: Debug, V: Debug> Debug for Attr<N, V>
[src]

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

Formats the value using the given formatter.

impl<N: Clone, V: Clone> Clone for Attr<N, V>
[src]

fn clone(&self) -> Attr<N, V>

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<N: Copy, V: Copy> Copy for Attr<N, V>
[src]

impl<'a> Predicate for Attr<&'a str, &'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>

impl<'a> Predicate for Attr<&'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>