pub enum HtmlNode {
Doctype(DocType),
Comment(String),
Text(Cow<'static, str>),
Element(HtmlElement),
ProcessingInstruction(ProcessingInstruction),
}
Variants§
Doctype(DocType)
A doctype.
Comment(String)
A comment.
Text(Cow<'static, str>)
Text.
Element(HtmlElement)
An element.
ProcessingInstruction(ProcessingInstruction)
A processing instruction.
Trait Implementations§
Source§impl From<HtmlElement> for HtmlNode
impl From<HtmlElement> for HtmlNode
Source§fn from(value: HtmlElement) -> Self
fn from(value: HtmlElement) -> Self
Converts to this type from the input type.
impl Eq for HtmlNode
impl StructuralPartialEq for HtmlNode
Auto Trait Implementations§
impl Freeze for HtmlNode
impl RefUnwindSafe for HtmlNode
impl Send for HtmlNode
impl Sync for HtmlNode
impl Unpin for HtmlNode
impl UnwindSafe for HtmlNode
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