Type Method
型メソッド
decode(from:)
Decodes a Swift value from the provided decoder, using a default implementation.
Declaration
宣言
static func decode(from decoder: Decoder
) throws -> Self.Value
Available when
Value
conforms to Decodable
.
Value
がDecodable
に準拠する時に利用可能。
Parameters
パラメータ
decoder
The decoder to read data from.
このデコーダからデータを読み出すことになります。
Return Value
戻り値
The decoded value.
Discussion
議論
The default implementation calls down to the value’s init(from:)
method.
This method throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
See Also
参照
DecodableAttributedStringKey Implementations
DecodableAttributedStringKey実装
static func decode(from: Decoder) -> Self.Value
Decodes an Objective-C value from the provided decoder, using a default implementation.
Available when
Value
conforms to NSObject
and NSSecureCoding
.
Value
がNSObject
とNSSecureCoding
に準拠する時に利用可能。