Protocol
KeyedEncodingContainerProtocol
A type that provides a view into an encoder’s storage and is used to hold the encoded properties of an encodable type in a keyed manner.
Declaration
Overview
Encoders should provide types conforming to KeyedEncodingContainerProtocol
for their format.
Topics
Instance Methods
func superEncoder() -> Encoder
Stores a new nested container for the default super
key and returns A new encoder instance for encoding super
into that container.
Required.
See Also
Encoding Containers
struct KeyedEncodingContainer
A concrete container that provides a view into an encoder’s storage, making the encoded properties of an encodable type accessible by keys.
protocol UnkeyedEncodingContainer
A type that provides a view into an encoder’s storage and is used to hold the encoded properties of an encodable type sequentially, without keys.