Generic Instance Method 総称体インスタンスメソッド

encode(contentsOf:)

Encodes the elements of the given sequence. 与えられたシーケンスに属する要素をエンコードします。

Declaration 宣言

mutating func encode<T>(contentsOf sequence: T) throws where T : Sequence, T.Element : Encodable

Parameters パラメータ

sequence

The sequences whose contents to encode. それの内容をエンコードするシーケンス。