Generic Type Method

transcode(_:from:)

Converts a scalar from another encoding’s representation, returning nil if the scalar can’t be represented in this encoding. あるスカラーを別の符号化のもつ表現から変換します、nilを返します、もしそのスカラーがこの符号化で表現されることができないならば。

Declaration 宣言

static func transcode<FromEncoding>(_ content: FromEncoding.EncodedScalar, from _: FromEncoding.Type) -> _ValidUTF8Buffer? where FromEncoding : _UnicodeEncoding

Discussion 解説

A default implementation of this method will be provided automatically for any conforming type that does not implement one. このメソッドの省略時の実装は、それを実装していないあらゆる準拠している型に対して自動的に提供されるでしょう。