Skip to content

Instance Method

encode(_:using:)

Use the provided ContentEncoder to write a value of type E to the container.
mutating func encode<E>(_ encodable: E, using encoder: any ContentEncoder) throws where E : Encodable