pub struct HtmlTag<'a> {
pub name: Cow<'a, str>,
pub attributes: HashMap<Cow<'a, str>, Cow<'a, str>>,
pub children: Vec<HtmlContent<'a>>,
}Fields§
§name: Cow<'a, str>§attributes: HashMap<Cow<'a, str>, Cow<'a, str>>§children: Vec<HtmlContent<'a>>Implementations§
Trait Implementations§
Source§impl<'a> From<HtmlTag<'a>> for HtmlContent<'a>
impl<'a> From<HtmlTag<'a>> for HtmlContent<'a>
Source§fn from(tag: HtmlTag<'a>) -> HtmlContent<'a>
fn from(tag: HtmlTag<'a>) -> HtmlContent<'a>
Converts to this type from the input type.
impl<'a> StructuralPartialEq for HtmlTag<'a>
Auto Trait Implementations§
impl<'a> Freeze for HtmlTag<'a>
impl<'a> RefUnwindSafe for HtmlTag<'a>
impl<'a> Send for HtmlTag<'a>
impl<'a> Sync for HtmlTag<'a>
impl<'a> Unpin for HtmlTag<'a>
impl<'a> UnwindSafe for HtmlTag<'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