pub enum XPathNodeKind {
Document,
Element,
Attribute,
Text,
Comment,
CData,
PI,
Namespace,
}Expand description
Simple, tree-agnostic enum. Used by eval for node-test matching. The
per-tree INodeKind / INodeKind types map onto this via
DocIndexLike::kind.
Variants§
Document
Element
Attribute
Text
Comment
CData
PI
Namespace
Synthetic namespace node — one per in-scope namespace binding for an element, materialized during indexing. XPath 1.0 §5.4.
Trait Implementations§
Source§impl Clone for XPathNodeKind
impl Clone for XPathNodeKind
Source§fn clone(&self) -> XPathNodeKind
fn clone(&self) -> XPathNodeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for XPathNodeKind
Source§impl Debug for XPathNodeKind
impl Debug for XPathNodeKind
impl Eq for XPathNodeKind
Source§impl PartialEq for XPathNodeKind
impl PartialEq for XPathNodeKind
Source§fn eq(&self, other: &XPathNodeKind) -> bool
fn eq(&self, other: &XPathNodeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XPathNodeKind
Auto Trait Implementations§
impl Freeze for XPathNodeKind
impl RefUnwindSafe for XPathNodeKind
impl Send for XPathNodeKind
impl Sync for XPathNodeKind
impl Unpin for XPathNodeKind
impl UnsafeUnpin for XPathNodeKind
impl UnwindSafe for XPathNodeKind
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