pub enum Node {
Element(Element),
Text(Text),
RawText(Text),
Fragment(Fragment),
}Expand description
A node in an HTML tree structure
The html macro creates instances of this type
Variants§
Element(Element)
An HTML element like <p> or <div>
Text(Text)
Text within an HTML element. This is automatically html-escaped
RawText(Text)
Similar to the Text variant, except it is included in the final HTML as-is, without
escaping.
Fragment(Fragment)
A list of HTML nodes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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