pub struct HtmlElement {
pub tag: String,
pub attributes: Vec<HtmlAttribute>,
pub children: Vec<Node>,
pub self_closing: bool,
}Expand description
Represents an HTML element, containing tag name, attributes, and child nodes
Fields§
§tag: StringElement tag name
attributes: Vec<HtmlAttribute>Element attributes
children: Vec<Node>Element child nodes (can only contain inline nodes)
self_closing: boolWhether it’s a self-closing tag (e.g. )
Trait Implementations§
Source§impl Clone for HtmlElement
impl Clone for HtmlElement
Source§fn clone(&self) -> HtmlElement
fn clone(&self) -> HtmlElement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HtmlElement
impl Debug for HtmlElement
Source§impl PartialEq for HtmlElement
impl PartialEq for HtmlElement
impl StructuralPartialEq for HtmlElement
Auto Trait Implementations§
impl Freeze for HtmlElement
impl RefUnwindSafe for HtmlElement
impl Send for HtmlElement
impl Sync for HtmlElement
impl Unpin for HtmlElement
impl UnwindSafe for HtmlElement
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