Enumerationswift 6.0.1FoundationEssentials
Component
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
enum Component
enum Component
s20FoundationEssentials15AttributeScopesO0A10AttributesV011MeasurementC0V9ComponentO
What are these?2CSQY
import FoundationEssentials
struct MeasurementAttribute
@frozen enum AttributeScopes
struct FoundationAttributes
case unit
case value
static let name: String
typealias Value = AttributeScopes.FoundationAttributes.MeasurementAttribute.Component
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 : Equatable
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.
protocol Sendable
init?(rawValue: Int)
init(from decoder: any Decoder) throws
Creates a new instance by decoding from the given decoder, when the type’s RawValue
is Int
.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder, when the type’s RawValue
is Int
.
func hash(into hasher: inout Hasher)