pub enum NodeData {
Document,
Fragment,
Doctype {
name: StrTendril,
public_id: StrTendril,
system_id: StrTendril,
},
Text {
contents: StrTendril,
},
Comment {
contents: StrTendril,
},
Element(Element),
ProcessingInstruction {
target: StrTendril,
contents: StrTendril,
},
}Expand description
The different kinds of nodes in the DOM.
Variants§
Document
The Tree itself - the root node of a HTML tree.
Fragment
A root of the html fragment
Doctype
A DOCTYPE with name, public id, and system id. See
tree type declaration on wikipedia.
Text
A text node.
Fields
§
contents: StrTendrilComment
A comment.
Fields
§
contents: StrTendrilElement(Element)
An element with attributes.
ProcessingInstruction
A Processing instruction.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NodeData
impl !RefUnwindSafe for NodeData
impl !Send for NodeData
impl !Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
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