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: Copy, V: Copy> Copy for Attr<N, V>
[src]
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: Debug, V: Debug> Debug for Attr<N, V>
[src]
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<'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> 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,
impl<'a> Predicate for Attr<&'a str, ()>
[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,