Initializersliemeobn.elementary 0.5.0Elementary
init
Creates a new HTML void element.
init()
Creates a new HTML void element.
init()
import Elementary
struct HTMLVoidElement<Tag> where Tag : HTMLTrait.Unpaired
An HTML element that does not contain content.
init(_ attribute: HTMLAttribute<Tag>)
Creates a new HTML void element with the specified attribute.
init(_ attributes: HTMLAttribute<Tag>...)
Creates a new HTML void element with the specified attributes.
init(attributes: [HTMLAttribute<Tag>])
Creates a new HTML void element with the specified attributes.
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) where Renderer : _HTMLRendering
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) async throws where Renderer : _AsyncHTMLRendering
var _attributes: _AttributeStorage
typealias Tag = Tag
The type of the HTML tag this element represents.