Protocol

TopLevelDecoder

A type that defines methods for decoding.

Declaration

protocol TopLevelDecoder

Topics

Declaring Encoder Topography

associatedtype Input

The type this decoder accepts.

Required.

Decoding

func decode<T>(T.Type, from: Self.Input) -> T

Decodes an instance of the indicated type.

Required.

Relationships

See Also

Encoders and Decoders

protocol TopLevelEncoder

A type that defines methods for encoding.