RawRepresentable
protocol RawRepresentable
-
Creates a new instance by decoding from the given decoder.
Throws
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.Declaration
Swift
public convenience init(from decoder: Decoder) throwsParameters
decoderThe decoder to read data from.
View on GitHub
RawRepresentable Extension Reference