pub enum NodeData {
Document,
Doctype {
name: String,
public_id: String,
system_id: String,
},
Text {
contents: Arc<Mutex<String>>,
},
Comment {
contents: String,
},
Element {
name: QualName,
attrs: Arc<Mutex<Vec<AtomicAttribute>>>,
template_contents: Arc<Mutex<Option<Handle>>>,
mathml_annotation_xml_integration_point: bool,
},
ProcessingInstruction {
target: String,
contents: String,
},
}Available on crate feature
xml5ever only.Variants§
Document
The Document itself - the root node of a HTML document.
Doctype
A DOCTYPE with name, public id, and system id. See
document type declaration on wikipedia.
Text
A text node.
Comment
A comment.
Element
An element with attributes.
Fields
§
attrs: Arc<Mutex<Vec<AtomicAttribute>>>§
mathml_annotation_xml_integration_point: boolWhether the node is a HTML integration point.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more