Contents

superEncoder()

Stores a new nested container for the default super key and returns a new encoder instance for encoding super into that container.

Declaration

mutating func superEncoder() -> any Encoder

Return Value

A new encoder to pass to super.encode(to:).

Discussion

Equivalent to calling superEncoder(forKey:) with Key(stringValue: "super", intValue: 0).