pub struct StartTag<S: SpanBound> {
pub self_closing: bool,
pub name: HtmlString,
pub attributes: BTreeMap<HtmlString, Spanned<HtmlString, S>>,
pub span: Span<S>,
}
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, Spanned<HtmlString, S>>
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.
span: Span<S>
The span of the start tag. Includes exactly the <p attr="value">
.
Trait Implementations§
impl<S: Eq + SpanBound> Eq for StartTag<S>
impl<S: SpanBound> StructuralPartialEq for StartTag<S>
Auto Trait Implementations§
impl<S> Freeze for StartTag<S>where
S: Freeze,
impl<S> RefUnwindSafe for StartTag<S>where
S: RefUnwindSafe,
impl<S> Send for StartTag<S>where
S: Send,
impl<S> Sync for StartTag<S>where
S: Sync,
impl<S> Unpin for StartTag<S>where
S: Unpin,
impl<S> UnwindSafe for StartTag<S>where
S: UnwindSafe + RefUnwindSafe,
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