Struct html5tokenizer::token::StartTag
source · pub struct StartTag {
pub name: String,
pub self_closing: bool,
pub attributes: AttributeMap,
}
Expand description
An HTML start tag, such as <p>
or <a>
.
Fields§
§name: String
The tag name. Uppercase ASCII characters (A-Z) have been converted to lowercase.
self_closing: bool
Whether this tag is self-closing. If it is self-closing, no following EndTag
should be
expected.
attributes: AttributeMap
A mapping for any HTML attributes this start tag may have.
Duplicate attributes are ignored after the first one as per WHATWG spec.
Trait Implementations§
source§impl PartialEq for StartTag
impl PartialEq for StartTag
impl Eq for StartTag
impl StructuralEq for StartTag
impl StructuralPartialEq for StartTag
Auto Trait Implementations§
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