#[repr(u16)]
pub enum NodeType {
Element,
Attribute,
Text,
CData,
EntityReference,
Entity,
ProcessingInstruction,
Comment,
Document,
DocumentType,
DocumentFragment,
Notation,
}
Expand description
This corresponds to the DOM NodeType
set of constants.
Variants
Element
The node is an Element
Attribute
The node is an Attribute
Text
The node is a Text
CData
The node is a CDataSection
EntityReference
The node is an EntityReference
Entity
The node is an Entity
ProcessingInstruction
The node is a ProcessingInstruction
Comment
The node is a Comment
Document
The node is a Document
DocumentType
The node is a DocumentType
DocumentFragment
The node is a DocumentFragment
Notation
The node is a Notation
Trait Implementations
impl Eq for NodeType
impl StructuralEq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more