IntermediateEncoder
public protocol IntermediateEncoder
This protocol provides a blueprint for an intermediate encoder, that does simply delegate the task of encoding to a Encoder
.
-
the raw type you encode to and decode from, for example Data
Declaration
Swift
associatedtype Raw
-
encode(_:)
Default implementationencodes the given value into a raw representation
Default Implementation
encodes the given value into a raw representation
Declaration
Swift
func encode<E>(_ value: E) throws -> Raw where E : Encodable
-
returns a new MetaEncoder
Declaration
Swift
func provideNewEncoder() -> MetaEncoder