Static Methodsoto-core 7.4.0SotoCore
encode(value:to:)
CollectionCoders.swift:49static func encode(value: CodableValue, to encoder: Encoder) throws
static func encode(value: CodableValue, to encoder: Encoder) throws
s8SotoCore10ArrayCoderVAASER_rlE6encode5value2toySayq_G_s7Encoder_ptKFZ
What are these?56DS2
where Element:Encodable, Element:Sendable, Properties:ArrayCoderProperties
import SotoCore
struct ArrayCoder<Properties, Element> where Properties : ArrayCoderProperties, Element : Sendable
Coder for encoding/decoding Arrays. This is extended to support encoding and decoding based on whether Element
is Encodable
or Decodable
.
typealias CodableValue = [Element]
protocol Encoder
A type that can encode values into a native format for external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Sendable
protocol ArrayCoderProperties
Protocol for array encoding properties. The only property required is the array element name member