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

encodeIfPresent(_:forKey:)

Encodes the given value for the given key if it is not nil. 与えられたキーに対して与えられた値をエンコードします、それがnilでないならば。

Declaration 宣言

mutating func encodeIfPresent(_ value: UInt64?, forKey key: KeyedEncodingContainer<K>.Key) throws

Parameters パラメータ

value

The value to encode. エンコードする値。

key

The key to associate the value with. 値と関連付けられるキー。

Relationships 関係

From Protocol 由来プロトコル