EnumerationFoundation5.9.0
Component
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
enum Component
Citizens in Foundation
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
A type that can be converted to and from an associated raw value.
Members
Features
init(from: Decoder
) throws Creates a new instance by decoding from the given decoder, when the type’s
RawValue
isInt
.var hashValue: Int
static func != (Self, Self
) -> Bool func encode(to: Encoder
) throws Encodes this value into the given encoder, when the type’s
RawValue
isInt
.func hash(into: inout Hasher
)