a `Double` value associated with a `Unit`. /// Measurements support a large set of operators, including `+`, `-`, `*`, `/`, and a full set of comparison operators. public struct Measurement<UnitType> where UnitType : Unit { /// The unit component of the `Measurement`. public let unit: UnitType /// The value component of the `Measurement`. public var value: Double /// Create a `Measurement` given a specified value and unit. public init(value: Double, unit: UnitType) } (一部略)
get } public init(symbol: String) } open class Dimension : Unit { @NSCopying open var converter: UnitConverter { get } public init(symbol: String, converter: UnitConverter) open class func baseUnit() -> Self } (一部略)
- Apple Developer • Units and Measurement | Apple Developer Documentation • Measurement - Foundation | Apple Developer Documentation • Unit - Foundation | Apple Developer Documentation • Dimension - Foundation | Apple Developer Documentation