pub enum NodeType {
Element,
Text,
Comment,
DocumentType,
Document,
}Expand description
The type of a DOM node.
Variants§
Element
An element node (e.g., <div>, <span>).
Text
A text node containing character data.
Comment
A comment node (e.g., <!-- comment -->).
DocumentType
A document type node (e.g., <!DOCTYPE html>).
Document
The document root node.
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