Generic Instance Method
総称体インスタンスメソッド
encode
encodeIfPresent(_:forKey:configuration:)
No overview available.
Availability
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
- Xcode 13.0+
Technology
- Foundation ファウンデーション
Declaration 宣言
mutating func encodeIfPresent<T>(_ t: T?, forKey key: KeyedEncodingContainer
<K>.Key
, configuration: T.EncodingConfiguration
) throws where T : EncodableWithConfiguration