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
protocol KeyedEncodingContainerProtocol
Overview
Encoders should provide types conforming to KeyedEncodingContainerProtocol for their format.
Topics
Instance Methods
func superEncoder() -> EncoderStores 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 KeyedEncodingContainerA concrete container that provides a view into an encoder’s storage, making the encoded properties of an encodable type accessible by keys.
protocol UnkeyedEncodingContainerA 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.