Struct html5gum::StartTag[][src]

pub struct StartTag {
    pub self_closing: bool,
    pub name: String,
    pub attributes: BTreeMap<String, String>,
}
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: String

The start tag’s name, such as "p" or "a".

attributes: BTreeMap<String, String>

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 Emitter to tweak this behavior.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.