Static Methodsliemeobn.elementary 0.5.0Elementary
buildBlock(_:_:)
HtmlBuilder+Tuples.swift:7static func buildBlock<V0, V1>(_ v0: V0, _ v1: V1) -> _HTMLTuple2<V0, V1> where V0 : HTML, V1 : HTML
static func buildBlock<V0, V1>(_ v0: V0, _ v1: V1) -> _HTMLTuple2<V0, V1> where V0 : HTML, V1 : HTML
s10Elementary11HTMLBuilderV10buildBlockyAA11_HTMLTuple2Vyxq_Gx_q_tAA4HTMLRzAaHR_r0_lFZ
What are these?230I0
import Elementary
@resultBuilder struct HTMLBuilder
A result builder for building HTML components.
struct _HTMLTuple2<V0, V1> where V0 : HTML, V1 : HTML
protocol HTML<Tag>
A type that represents HTML content that can be rendered.
static func buildArray<Element>(_ components: [Element]) -> _HTMLArray<Element> where Element : HTML
static func buildBlock() -> EmptyHTML
static func buildBlock<each Content>(_ content: repeat each Content) -> _HTMLTuple<repeat each Content> where repeat each Content : HTML
static func buildBlock<Content>(_ content: Content) -> Content where Content : HTML
static func buildBlock<V0, V1, V2>(_ v0: V0, _ v1: V1, _ v2: V2) -> _HTMLTuple3<V0, V1, V2> where V0 : HTML, V1 : HTML, V2 : HTML
static func buildBlock<V0, V1, V2, V3>(_ v0: V0, _ v1: V1, _ v2: V2, _ v3: V3) -> _HTMLTuple4<V0, V1, V2, V3> where V0 : HTML, V1 : HTML, V2 : HTML, V3 : HTML
static func buildBlock<V0, V1, V2, V3, V4>(_ v0: V0, _ v1: V1, _ v2: V2, _ v3: V3, _ v4: V4) -> _HTMLTuple5<V0, V1, V2, V3, V4> where V0 : HTML, V1 : HTML, V2 : HTML, V3 : HTML, V4 : HTML
static func buildBlock<V0, V1, V2, V3, V4, V5>(_ v0: V0, _ v1: V1, _ v2: V2, _ v3: V3, _ v4: V4, _ v5: V5) -> _HTMLTuple6<V0, V1, V2, V3, V4, V5> where V0 : HTML, V1 : HTML, V2 : HTML, V3 : HTML, V4 : HTML, V5 : HTML
static func buildEither<TrueContent, FalseContent>(first: TrueContent) -> _HTMLConditional<TrueContent, FalseContent> where TrueContent : HTML, FalseContent : HTML
static func buildEither<TrueContent, FalseContent>(second: FalseContent) -> _HTMLConditional<TrueContent, FalseContent> where TrueContent : HTML, FalseContent : HTML
static func buildExpression(_ content: String) -> HTMLText
static func buildExpression<Content>(_ content: Content) -> Content where Content : HTML
static func buildIf<Content>(_ content: Content?) -> Content? where Content : HTML
static func buildExpression<Content>(_ content: Content) -> HTMLText where Content : StringProtocol