pub struct Element {
pub tag_name: String,
pub attributes: Vec<(String, String)>,
pub children: Vec<Node>,
}Expand description
The Element struct represents an HTML element with its tag name, attributes, and child nodes.
Fields§
§tag_name: String§attributes: Vec<(String, String)>§children: Vec<Node>Trait Implementations§
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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