Initializersliemeobn.elementary 0.5.0Elementary
init(_:)
Creates a new text content with the specified text.
This declaration is deprecated: use init(_: String) instead
init(_ text: some StringProtocol)
Creates a new text content with the specified text.
This declaration is deprecated: use init(_: String) instead
init(_ text: some StringProtocol)
import Elementary
struct HTMLText
A type that represents text content in an HTML document.
protocol StringProtocol : BidirectionalCollection, Comparable, ExpressibleByStringInterpolation, Hashable, LosslessStringConvertible, TextOutputStream, TextOutputStreamable where Self.Element == Character, Self.Index == String.Index, Self.StringInterpolation == DefaultStringInterpolation, Self.SubSequence : StringProtocol
A type that can represent a string as a collection of characters.
init(_ text: String)
Creates a new text content with the specified text.
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 text: String
The text content.