pub enum Node {
Text(String),
Element(ElementNode),
Comment(String),
}
Variants§
Text(String)
A text node. The text must be not encoded. It will be xml encoded when converting the node to html string.
Element(ElementNode)
An element potentially with attributes and children.
Comment(String)
comment. . The text must be not encoded. It will be xml encoded when converting the node to html string.
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