pub enum NodeType {
Root,
Element,
Comment,
Text,
}
Expand description
List of supported node types.
Variants§
Root
The root node of the Document
.
Constructed with Document
. Unavailable to the user.
Element
An element node.
Only an element can have attributes, ID and tag name.
Comment
A comment node.
Text
A text node.
Trait Implementations§
impl Copy 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