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

appendInterpolation(_:formatter:)

Appends an optionally-formatted instance of a Foundation type to a string interpolation.

Declaration 宣言

mutating func appendInterpolation<Subject>(_ subject: Subject, formatter: Formatter? = nil) where Subject : ReferenceConvertible

Parameters パラメータ

subject

The Foundation object to append.

formatter

A formatter to convert subject to a string representation.

Discussion 議論

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

See Also 参照

Appending to an Interpolation