Initializer

init(from:)

Creates a measurement format usage by decoding from the specified decoder.

Declaration 宣言

init(from decoder: Decoder) throws

Parameters パラメータ

decoder

The decoder to read data from. このデコーダからデータを読み出すことになります。

Discussion 議論

This initializer throws an error if reading from the decoder fails, if the data is corrupt, or is otherwise invalid.

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Encoding and Decoding Measurement Format Unit Usage