[−][src]Struct select::predicate::Attr
Matches Element Node containing attribute N
with value V
if V
is an
&str
, or any value if V
is ()
.
Trait Implementations
impl<N: Clone, V: Clone> Clone for Attr<N, V>
[src]
impl<N: Copy, V: Copy> Copy for Attr<N, V>
[src]
impl<N: Debug, V: Debug> Debug for Attr<N, V>
[src]
impl<N: PartialEq, V: PartialEq> PartialEq<Attr<N, V>> for Attr<N, V>
[src]
impl<'a> Predicate for Attr<&'a str, &'a str>
[src]
fn matches(&self, node: &Node) -> bool
[src]
fn or<T: Predicate>(self, other: T) -> Or<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn and<T: Predicate>(self, other: T) -> And<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn not(self) -> Not<Self> where
Self: Sized,
[src]
Self: Sized,
fn child<T: Predicate>(self, other: T) -> Child<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn descendant<T: Predicate>(self, other: T) -> Descendant<Self, T> where
Self: Sized,
[src]
Self: Sized,
impl<'a> Predicate for Attr<&'a str, ()>
[src]
fn matches(&self, node: &Node) -> bool
[src]
fn or<T: Predicate>(self, other: T) -> Or<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn and<T: Predicate>(self, other: T) -> And<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn not(self) -> Not<Self> where
Self: Sized,
[src]
Self: Sized,
fn child<T: Predicate>(self, other: T) -> Child<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn descendant<T: Predicate>(self, other: T) -> Descendant<Self, T> where
Self: Sized,
[src]
Self: Sized,
impl<N, V> StructuralPartialEq for Attr<N, V>
[src]
Auto Trait Implementations
impl<N, V> RefUnwindSafe for Attr<N, V> where
N: RefUnwindSafe,
V: RefUnwindSafe,
N: RefUnwindSafe,
V: RefUnwindSafe,
impl<N, V> Send for Attr<N, V> where
N: Send,
V: Send,
N: Send,
V: Send,
impl<N, V> Sync for Attr<N, V> where
N: Sync,
V: Sync,
N: Sync,
V: Sync,
impl<N, V> Unpin for Attr<N, V> where
N: Unpin,
V: Unpin,
N: Unpin,
V: Unpin,
impl<N, V> UnwindSafe for Attr<N, V> where
N: UnwindSafe,
V: UnwindSafe,
N: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Predicate for F where
F: Fn(&Node) -> bool,
[src]
F: Fn(&Node) -> bool,
fn matches(&Self, &Node) -> bool
[src]
fn or<T: Predicate>(self, other: T) -> Or<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn and<T: Predicate>(self, other: T) -> And<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn not(self) -> Not<Self> where
Self: Sized,
[src]
Self: Sized,
fn child<T: Predicate>(self, other: T) -> Child<Self, T> where
Self: Sized,
[src]
Self: Sized,
fn descendant<T: Predicate>(self, other: T) -> Descendant<Self, T> where
Self: Sized,
[src]
Self: Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,