pub enum NodeTest {
NameTest(NameTest),
Comment,
Text,
ProcessingInstruction(Option<String>),
Node,
Wildcard,
NsWildcard(String),
NsWildcardUri(String),
}Expand description
XPath node test.
Variants§
NameTest(NameTest)
name() — matches any node of principal node type
Comment
comment()
Text
text()
ProcessingInstruction(Option<String>)
processing-instruction() or processing-instruction(“target”)
Node
node()
Wildcard
- — matches any node of principal node type
NsWildcard(String)
prefix:* — namespace wildcard
NsWildcardUri(String)
{uri}* — namespace wildcard with the prefix already resolved to a URI at evaluation time (upstream resolves QName prefixes at compile)
Trait Implementations§
impl StructuralPartialEq for NodeTest
Auto Trait Implementations§
impl Freeze for NodeTest
impl RefUnwindSafe for NodeTest
impl Send for NodeTest
impl Sync for NodeTest
impl Unpin for NodeTest
impl UnsafeUnpin for NodeTest
impl UnwindSafe for NodeTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more