Module predicate

Source

Structs§

And
Matches if the inner Predicate A and B both match the Node.
Any
Matches any Node.
Attr
Matches Element Node containing attribute N with value V if V is an &str, or any value if V is ().
Child
Matches if inner Predicate B matches the node and A matches the parent of the node.
Class
Matches Element Node containing class T.
Comment
Matches any Comment Node.
Descendant
Matches if inner Predicate B matches the node and A matches any of the parents of node.
Element
Matches any Element Node.
Name
Matches Element Node with name T.
Not
Matches if the Predicate T does not match.
Or
Matches if either inner Predicate A or B matches the Node.
Text
Matches any Text Node.

Traits§

Predicate
A trait implemented by all Node matchers.