appendLiteral(_:)
Appends a literal segment of a string interpolation.
mutating func appendLiteral(_ literal: String)
Do not call this method directly. It is used by the compiler when interpreting string interpolations.
Appends a literal segment of a string interpolation.
mutating func appendLiteral(_ literal: String)
Do not call this method directly. It is used by the compiler when interpreting string interpolations.
import Swift
@frozen struct DefaultStringInterpolation
Represents a string literal with interpolations while it is being built up.
@frozen struct String
A Unicode string value that is a collection of characters.
init(literalCapacity: Int, interpolationCount: Int)
Creates a string interpolation with storage pre-sized for a literal with the indicated attributes.
var description: String { get }
mutating func appendInterpolation<T>(_ value: T)
Interpolates the given value’s textual representation into the string literal being created.
mutating func appendInterpolation<T>(_ value: T) where T : CustomStringConvertible
Interpolates the given value’s textual representation into the string literal being created.
mutating func appendInterpolation<T>(_ value: T) where T : CustomStringConvertible, T : TextOutputStreamable
Interpolates the given value’s textual representation into the string literal being created.
mutating func appendInterpolation<T>(_ value: T) where T : TextOutputStreamable
Interpolates the given value’s textual representation into the string literal being created.
mutating func appendInterpolation(_ value: any Any.Type)
mutating func write(_ string: String)