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

encode(to:)

Encodes this value into the given encoder. この値を与えられたエンコーダにエンコードします。

Declaration 宣言

func encode(to encoder: Encoder) throws

Parameters パラメータ

encoder

The encoder to write data to. データを書き込むエンコーダ。

Discussion 解説

This function throws an error if any values are invalid for the given encoder’s format. この関数は、与えられたエンコーダの形式に対して何らかの値が無効であるならばエラーをスローします。

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Encoding and Decoding エンコーディングとデコーディング