pub enum TypedNode {
Element {
tag: &'static str,
is_void: bool,
attrs: Vec<(Cow<'static, str>, String)>,
children: Vec<TypedNode>,
},
Text(String),
Raw(String),
}Expand description
A node in the typed HTML tree.
Variants§
Element
An element with tag, attributes, and children.
Fields
Text(String)
Escaped text content.
Raw(String)
Raw HTML (not escaped).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypedNode
impl RefUnwindSafe for TypedNode
impl Send for TypedNode
impl Sync for TypedNode
impl Unpin for TypedNode
impl UnwindSafe for TypedNode
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