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.
Declaration
protocol UnkeyedEncodingContainer
Overview
Encoders should provide types conforming to UnkeyedEncodingContainer for their format.
Topics
Instance Properties
var count: IntThe number of elements encoded into the container.
Required.
Instance Methods
func encodeConditional<T>(T)Encodes a reference to the given object only if it is encoded unconditionally elsewhere in the payload (previously, or in the future).
Required. Default implementation provided.
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.