Protocol

TopLevelEncoder

A type that defines methods for encoding.

Declaration

protocol TopLevelEncoder

Topics

Declaring Encoder Topography

associatedtype Output

The type this encoder produces.

Required.

Encoding

func encode<T>(T) -> Self.Output

Encodes an instance of the indicated type.

Required.

Relationships

See Also

Encoders and Decoders

protocol TopLevelDecoder

A type that defines methods for decoding.