protocol Decodable

A type that can decode itself from an external representation.

Conforming Types SIMD


init init(from:) Required

Creates a new instance by decoding from the given decoder.

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

  • Parameter decoder: The decoder to read data from.


init(from decoder: Decoder) throws