pub struct StartTag {
pub self_closing: bool,
pub name: HtmlString,
pub attributes: BTreeMap<HtmlString, HtmlString>,
}
Expand description
A HTML end/close tag, such as <p>
or <a>
.
Fields§
§self_closing: bool
Whether this tag is self-closing. If it is self-closing, no following EndTag should be expected.
name: HtmlString
The start tag’s name, such as "p"
or "a"
.
attributes: BTreeMap<HtmlString, HtmlString>
A mapping for any HTML attributes this start tag may have.
Duplicate attributes are ignored after the first one as per WHATWG spec. Implement your own crate::Emitter to tweak this behavior.
Trait Implementations§
impl Eq for StartTag
impl StructuralPartialEq for StartTag
Auto Trait Implementations§
impl Freeze for StartTag
impl RefUnwindSafe for StartTag
impl Send for StartTag
impl Sync for StartTag
impl Unpin for StartTag
impl UnwindSafe for StartTag
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