Generic Instance Method

encode(_:)

Encodes the given value.

Required.

Declaration

mutating func encode<T>(_ value: T) throws where T : Encodable

Parameters

value

The value to encode.