Structuresliemeobn.elementary 0.5.3Elementary
_HTMLTuple6
HtmlBuilder+Tuples.swift:223struct _HTMLTuple6<V0, V1, V2, V3, V4, V5> where V0 : HTML, V1 : HTML, V2 : HTML, V3 : HTML, V4 : HTML, V5 : HTMLstruct _HTMLTuple6<V0, V1, V2, V3, V4, V5> where V0 : HTML, V1 : HTML, V2 : HTML, V3 : HTML, V4 : HTML, V5 : HTMLimport Elementaryprotocol HTML<Tag>A type that represents HTML content that can be rendered.
init(v0: V0, v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) static func _render<Renderer>(_ html: consuming _HTMLTuple6<V0, V1, V2, V3, V4, V5>, into renderer: inout Renderer, with context: consuming _RenderingContext) where Renderer : _HTMLRendering static func _render<Renderer>(_ html: consuming _HTMLTuple6<V0, V1, V2, V3, V4, V5>, into renderer: inout Renderer, with context: consuming _RenderingContext) async throws where Renderer : _AsyncHTMLRendering let v0: V0let v1: V1let v2: V2let v3: V3let v4: V4let v5: V5static 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 content: Never { get }func environment<T>(_ taskLocal: TaskLocal<T>, _ value: T) -> _ModifiedTaskLocal<T, Self> where T : Sendable Sets the value of a TaskLocal for the duration of rendering the content.
consuming func render() -> String Renders the HTML content into a single string.
consuming func render(into writer: some HTMLStreamWriter, chunkSize: Int = 1024) async throws Renders the HTML content into a stream writer.
consuming func renderAsync() async throws -> String Renders the HTML content into a single string asynchronously.
consuming func renderFormatted() -> String Renders the HTML content into a formatted string.
consuming func render(into writer: @escaping (String) -> Void) protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.