pub enum NodeType {
Element,
Text,
ProcessingInstruction,
Comment,
Document,
DocumentType,
DocumentFragment,
Attribute,
CDataSection,
XmlEntityReference,
XmlEntity,
XmlNotation,
}
Expand description
Determines the type of a Node
.
Variants§
Element
An Element
such as <p>
or <div>
.
Text
The actual Text
of Element
or Attr
.
ProcessingInstruction
A ProcessingInstruction
of an XML document.
Comment
A Comment
node.
Document
A ‘Document’ node.
DocumentType
A ‘DocumentType’ node such as <!DOCTYPE html>
DocumentFragment
A ‘DocumentFragment’ node.
Attribute
Deprecated.
CDataSection
Deprecated.
XmlEntityReference
Deprecated.
XmlEntity
Deprecated.
XmlNotation
Deprecated.
Trait Implementations§
impl Copy for NodeType
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
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