Enumerationswift 6.1.2Foundation
Unit
enum Unitenum Unitimport Foundationclass LengthFormattercase centimetercase footcase inchcase kilometercase metercase milecase millimetercase yardoverride init() required init?(coder: NSCoder) var isForPersonHeightUse: Boolvar numberFormatter: NumberFormatter!var unitStyle: Formatter.UnitStylefunc string(fromMeters numberInMeters: Double) -> String func string(fromValue value: Double, unit: LengthFormatter.Unit) -> String func unitString(fromMeters numberInMeters: Double, usedUnit unitp: UnsafeMutablePointer<LengthFormatter.Unit>?) -> String func unitString(fromValue value: Double, unit: LengthFormatter.Unit) -> String protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA 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 SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init?(rawValue: Int) var hashValue: Int { get }static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)