#[repr(u8)]pub enum NodeType {
Nul = 0,
Root = 1,
Element = 2,
Attribute = 3,
ChildValue = 4,
Text = 5,
Whitespace = 6,
SignificantWhitespace = 7,
Comment = 8,
ProcessingInstruction = 9,
}Expand description
Discriminant stored in the low 4 bits of Node::props_type.
Variants§
Nul = 0
Sentinel: marks end of document.
Root = 1
Document root.
Element = 2
Element node (value = QNameAtom index).
Attribute = 3
Attribute name node of a two-node pair (value = QNameAtom index).
ChildValue = 4
String content of a two-node pair (attribute value or PI data).
Text = 5
Text node (value = string index).
Whitespace = 6
Whitespace-only text node.
SignificantWhitespace = 7
Schema-significant whitespace.
Comment = 8
Comment node (value = string index).
ProcessingInstruction = 9
Processing instruction target (value = string index); data in next ChildValue.
Trait Implementations§
impl Copy for NodeType
impl Eq for NodeType
Source§impl From<NodeType> for DomNodeType
impl From<NodeType> for DomNodeType
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 UnsafeUnpin 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