You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Conformance to `KeyedEncodingContainerProtocol` indicates that a type provides a view into an `Encoder`'s storage and is used to hold the encoded properties of an `Encodable` type in a keyed manner.
140
+
/// A type that provides a view into an encoder's storage and is used to hold
141
+
/// the encoded properties of an encodable type in a keyed manner.
136
142
///
137
-
/// Encoders should provide types conforming to `KeyedEncodingContainerProtocol` for their format.
143
+
/// Encoders should provide types conforming to
144
+
/// `KeyedEncodingContainerProtocol` for their format.
138
145
publicprotocolKeyedEncodingContainerProtocol{
139
146
associatedtypeKey:CodingKey
140
147
@@ -286,7 +293,9 @@ public protocol KeyedEncodingContainerProtocol {
286
293
}
287
294
288
295
// An implementation of _KeyedEncodingContainerBase and _KeyedEncodingContainerBox are given at the bottom of this file.
289
-
/// `KeyedEncodingContainer` is a type-erased box for `KeyedEncodingContainerProtocol` types, similar to `AnyCollection` and `AnyHashable`. This is the type which consumers of the API interact with directly.
296
+
297
+
/// A concrete container that provides a view into an encoder's storage, making
298
+
/// the encoded properties of an encodable type accessible by keys.
290
299
publicstructKeyedEncodingContainer<K :CodingKey>{
291
300
publictypealiasKey=K
292
301
@@ -488,9 +497,11 @@ public struct KeyedEncodingContainer<K : CodingKey> {
488
497
}
489
498
}
490
499
491
-
/// Conformance to `KeyedDecodingContainerProtocol` indicates that a type provides a view into a `Decoder`'s storage and is used to hold the encoded properties of a `Decodable` type in a keyed manner.
500
+
/// A type that provides a view into a decoder's storage and is used to hold
501
+
/// the encoded properties of a decodable type in a keyed manner.
492
502
///
493
-
/// Decoders should provide types conforming to `UnkeyedDecodingContainer` for their format.
503
+
/// Decoders should provide types conforming to `UnkeyedDecodingContainer` for
504
+
/// their format.
494
505
publicprotocolKeyedDecodingContainerProtocol{
495
506
associatedtypeKey:CodingKey
496
507
@@ -845,7 +856,9 @@ public protocol KeyedDecodingContainerProtocol {
845
856
}
846
857
847
858
// An implementation of _KeyedDecodingContainerBase and _KeyedDecodingContainerBox are given at the bottom of this file.
848
-
/// `KeyedDecodingContainer` is a type-erased box for `KeyedDecodingContainerProtocol` types, similar to `AnyCollection` and `AnyHashable`. This is the type which consumers of the API interact with directly.
859
+
860
+
/// A concrete container that provides a view into an decoder's storage, making
861
+
/// the encoded properties of an decodable type accessible by keys.
/// Conformance to `UnkeyedEncodingContainer` indicates that a type provides a view into an `Encoder`'s storage and is used to hold the encoded properties of an `Encodable` type sequentially, without keys.
1123
+
/// A type that provides a view into an encoder's storage and is used to hold
1124
+
/// the encoded properties of an encodable type sequentially, without keys.
1111
1125
///
1112
-
/// Encoders should provide types conforming to `UnkeyedEncodingContainer` for their format.
1126
+
/// Encoders should provide types conforming to `UnkeyedEncodingContainer` for
1127
+
/// their format.
1113
1128
publicprotocolUnkeyedEncodingContainer{
1114
1129
/// The path of coding keys taken to get to this point in encoding.
1115
1130
/// A `nil` value indicates an unkeyed container.
@@ -1322,9 +1337,11 @@ public protocol UnkeyedEncodingContainer {
1322
1337
mutatingfunc superEncoder()->Encoder
1323
1338
}
1324
1339
1325
-
/// Conformance to `UnkeyedDecodingContainer` indicates that a type provides a view into a `Decoder`'s storage and is used to hold the encoded properties of a `Decodable` type sequentially, without keys.
1340
+
/// A type that provides a view into a decoder's storage and is used to hold
1341
+
/// the encoded properties of a decodable type sequentially, without keys.
1326
1342
///
1327
-
/// Decoders should provide types conforming to `UnkeyedDecodingContainer` for their format.
1343
+
/// Decoders should provide types conforming to `UnkeyedDecodingContainer` for
1344
+
/// their format.
1328
1345
publicprotocolUnkeyedDecodingContainer{
1329
1346
/// The path of coding keys taken to get to this point in decoding.
1330
1347
/// A `nil` value indicates an unkeyed container.
@@ -1615,7 +1632,8 @@ public protocol UnkeyedDecodingContainer {
0 commit comments