Required Associated Typeswift 6.0.3Swift
StringLiteralType
The type that should be used for literal segments.
associatedtype StringLiteralType : _ExpressibleByBuiltinStringLiteral
The type that should be used for literal segments.
associatedtype StringLiteralType : _ExpressibleByBuiltinStringLiteral
import Swift
protocol StringInterpolationProtocol
Represents the contents of a string literal with interpolations while it’s being built up.
init(literalCapacity: Int, interpolationCount: Int)
Creates an empty instance ready to be filled with string literal content.
mutating func appendLiteral(_ literal: Self.StringLiteralType)
Appends a literal segment to the interpolation.