Initializer

init(from:)

Creates a new instance by decoding from the given decoder, when the type’s RawValue is Int8.

Declaration 宣言

init(from decoder: Decoder) throws
Available when Self conforms to Decodable and RawValue is Int8.

Parameters パラメータ

decoder

The decoder to read data from.

Discussion 議論

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