pub enum NodeKind {
Document,
Element(ElementData),
Text(TextData),
Comment(String),
Declaration(ElementData),
Unknown(String),
}Expand description
The kind of XML node.
Variants§
Document
The top-level document node.
Element(ElementData)
An XML element (e.g., <element name="value">).
Text(TextData)
A text node or CDATA section.
Comment(String)
A comment (e.g., <!-- comment -->).
Declaration(ElementData)
An XML declaration (e.g., <?xml version="1.0"?>).
Unknown(String)
An unrecognized structure (e.g., <!DOCTYPE ...>).
Trait Implementations§
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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