FormatVersion
Representation of package collection (JSON) schema version
PackageCollectionModel.swift:20enum FormatVersion
Cases
Other members in extension
Types
Citizens in PackageCollectionsModel
Conformances
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Type features
init(from: any Decoder
) throws Creates a new instance by decoding from the given decoder, when the type’s
RawValue
isString
.static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Instance features
var hashValue: Int
func encode(to: any Encoder
) throws Encodes this value into the given encoder, when the type’s
RawValue
isString
.func hash(into: inout Hasher
)