Instance Method インスタンスメソッド

superEncoder()

Stores a new nested container for the default super key and returns a new encoder instance for encoding super into that container. 新しい入れ子コンテナを省略時のsuperキーに対して格納します、そしてsuperをそのコンテナへとエンコードするための新しいエンコーダインスタンスを返します。

Declaration 宣言

mutating func superEncoder() -> Encoder

Return Value 戻り値

A new encoder to pass to super.encode(to:). super.encode(to:)に渡すための新しいエンコーダ。

Discussion 解説

Equivalent to calling superEncoder(forKey:) with Key(stringValue: "super", intValue: 0). superEncoder(forKey:)Key(stringValue: "super", intValue: 0)で呼び出すことと同等です。