pub enum NodeKind<'a> {
Document,
Doctype,
Element(Name<'a>),
Text(&'a str),
CData(&'a str),
Comment(&'a str),
ProcessingInstruction {
target: &'a str,
data: &'a str,
},
EntityRef(&'a str),
}Expand description
What a node is.
Variants§
Document
The root of the tree, above the document element.
Doctype
The <!DOCTYPE>; Document::doctype has what it said.
Element(Name<'a>)
Text(&'a str)
Character data, with line ends normalized and references replaced. Adjacent character data is one node.
CData(&'a str)
A CDATA section’s contents.
Comment(&'a str)
ProcessingInstruction
EntityRef(&'a str)
A reference to an entity this parser didn’t read: one declared external, or one an unread part of the DTD might declare. The document’s warnings say which.
Trait Implementations§
impl<'a> Copy for NodeKind<'a>
impl<'a> Eq for NodeKind<'a>
impl<'a> StructuralPartialEq for NodeKind<'a>
Auto Trait Implementations§
impl<'a> Forget for NodeKind<'a>
impl<'a> Freeze for NodeKind<'a>
impl<'a> Move for NodeKind<'a>
impl<'a> RefUnwindSafe for NodeKind<'a>
impl<'a> Send for NodeKind<'a>
impl<'a> Sync for NodeKind<'a>
impl<'a> Unpin for NodeKind<'a>
impl<'a> UnsafeUnpin for NodeKind<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for NodeKind<'a>where
&'a str: UnwindSafe,
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