pub struct HtmlElement<'a> {
pub name: &'a str,
pub attributes: Vec<(&'a str, Option<&'a str>)>,
pub tag_state: ElementTagState,
pub content: Vec<ElementContent<'a>>,
}
Expand description
A html element
Fields§
§name: &'a str
Name of the element
attributes: Vec<(&'a str, Option<&'a str>)>
Attributes of the element
tag_state: ElementTagState
Possible tag state of an element
content: Vec<ElementContent<'a>>
Contents of the element
Trait Implementations§
Source§impl<'a> Debug for HtmlElement<'a>
impl<'a> Debug for HtmlElement<'a>
Source§impl<'a> PartialEq for HtmlElement<'a>
impl<'a> PartialEq for HtmlElement<'a>
impl<'a> StructuralPartialEq for HtmlElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for HtmlElement<'a>
impl<'a> RefUnwindSafe for HtmlElement<'a>
impl<'a> Send for HtmlElement<'a>
impl<'a> Sync for HtmlElement<'a>
impl<'a> Unpin for HtmlElement<'a>
impl<'a> UnwindSafe for HtmlElement<'a>
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