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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

This method tests for !=.

impl<'a> Predicate for Attr<&'a str, &'a str>
[src]

impl<'a> Predicate for Attr<&'a str, ()>
[src]