Instance Method インスタンスメソッド

appendInterpolation(_:specifier:)

Appends a type, convertible to a string with a format specifier, to a string interpolation.

Declaration 宣言

mutating func appendInterpolation<T>(_ value: T, specifier: String) where T : _FormatSpecifiable

Parameters パラメータ

value

The value to append.

specifier

A format specifier to convert subject to a string representation, like %f for a Double, or %x to create a hexidecimal representation of a UInt32. For a list of available specifier strings, see String Format Specifers.

Discussion 議論

Don’t call this method directly; it’s used by the compiler when interpreting string interpolations.

See Also 参照

Appending to an Interpolation