pub trait ElementPredicate {
// Required method
fn match_element(&self, e: &Element) -> bool;
}Expand description
A predicate for matching elements.
The default implementations allow you to match by tag name or a tuple of tag name and namespace.
Required Methods§
fn match_element(&self, e: &Element) -> bool
Implementations on Foreign Types§
Source§impl ElementPredicate for String
impl ElementPredicate for String
Source§fn match_element(&self, e: &Element) -> bool
fn match_element(&self, e: &Element) -> bool
Search by tag name
Source§impl<'a> ElementPredicate for &'a str
impl<'a> ElementPredicate for &'a str
Source§fn match_element(&self, e: &Element) -> bool
fn match_element(&self, e: &Element) -> bool
Search by tag name
Source§impl<'a> ElementPredicate for Cow<'a, str>
impl<'a> ElementPredicate for Cow<'a, str>
Source§fn match_element(&self, e: &Element) -> bool
fn match_element(&self, e: &Element) -> bool
Search by tag name
Source§impl<TN> ElementPredicate for (TN,)
impl<TN> ElementPredicate for (TN,)
fn match_element(&self, e: &Element) -> bool
Source§impl<TN, NS> ElementPredicate for (TN, NS)
impl<TN, NS> ElementPredicate for (TN, NS)
Source§fn match_element(&self, e: &Element) -> bool
fn match_element(&self, e: &Element) -> bool
Search by a tuple of (tagname, namespace)