Static Methodsoto-core 7.4.0SotoCore
decode(from:)
CollectionCoders.swift:76static func decode(from decoder: Decoder) throws -> CodableValue
static func decode(from decoder: Decoder) throws -> CodableValue
s8SotoCore15DictionaryCoderVAASeR_SeR0_rlE6decode4fromSDyq_q0_Gs7Decoder_p_tKFZ
What are these?8UHSK
import SotoCore
struct DictionaryCoder<Properties, Key, Value> where Properties : DictionaryCoderProperties, Key : Hashable, Key : Sendable, Value : Sendable
Coder for encoding/decoding Dictionaries. This is extended to support encoding and decoding based on whether Key
and Value
are Encodable
or Decodable
.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
typealias CodableValue = [Key : Value]
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Decodable
A type that can decode itself from an external representation.
protocol Sendable
protocol DictionaryCoderProperties
Protocol for dictionary encoding properties. The property required are the dictionary element name entry
, the key name key
and the value name value