MeasurementDecorator

public struct MeasurementDecorator<UnitType> where UnitType : Unit

Extending standard structures like Measurement with properties like var meters is convenient:

  • it avoids extracting value without explicit conversion to a certain unit
  • it simplifies getting value from an optional Measurement But it is also risky because these extensions might conflict with extensions from other libraries or Apple. This decorator mitigates the risk of conflicts while providing a short, readable code. Typical use cases are:
  • extracting value from a value representing a unit of measure: let optionalDistanceInMeters = distance?.tt.meters
  • performing computations on values representing units of measure: cumulativeDistance += anotherDistance.tt
  • comparing values representing units of measure: if delay < .tt.seconds(5) {}
  • combining value extraction and typecast: let intValue = distance.tt.intValue(in: .meters)

Lifecycle

  • Create a MeasurementDecorator given a specified measurement.

    Declaration

    Swift

    public init(measurement: Measurement<UnitType>)

Public

  • Measurement with some UnitType.

    Declaration

    Swift

    public let measurement: Measurement<UnitType>

Available where UnitType: Dimension

  • A convenience method to perform both conversion to Int and conversion to the specified unit.

    • let intValue = distance?.tt.intValue(in: .meters)

    Declaration

    Swift

    public func intValue(in unit: UnitType) -> Int
  • Convenient method to always convert before getting value and allow optional chaining.

    • let optionalFloatValueInMeters = distance?.tt.floatValue(in: .meters)

    Declaration

    Swift

    public func floatValue(in unit: UnitType) -> Float
  • Convenient method to always convert before getting value and allow optional chaining.

    • let optionalDoubleValueInMeters = distance?.tt.doubleValue(in: .meters)

    Declaration

    Swift

    public func doubleValue(in unit: UnitType) -> Double

Available where UnitType == TTUnitElectricEfficiency

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilowattHoursPer100Kilometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilowattHoursPerKilometer(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilometersPerKilowattHour(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milesPerKilowattHour(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilowattHoursPer100Kilometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilowattHoursPerKilometer: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilometersPerKilowattHour: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milesPerKilowattHour: Double { get }

Available where UnitType == TTUnitEnergyDensity

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func megaJoulePerLiter(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kiloJoulePerLiter(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func joulePerLiter(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kiloCaloriesPerLiter(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func caloriesPerLiter(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var megaJoulePerLiter: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kiloJoulePerLiter: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var joulePerLiter: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilocaloriesPerLiter: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var caloriesPerLiter: Double { get }

Available where UnitType == TTUnitFuelPerTime

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func litersPerHour(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func gallonsPerHour(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func imperialGallonsPerHour(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var litersPerHour: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var gallonsPerHour: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var imperialGallonsPerHour: Double { get }

Available where UnitType == UnitAngle

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func degrees(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func arcMinutes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func arcSeconds(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func radians(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func gradians(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func revolutions(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var degrees: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var arcMinutes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var arcSeconds: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var radians: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var gradians: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var revolutions: Double { get }

Available where UnitType == UnitDuration

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func hours(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func minutes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func seconds(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milliseconds(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func microseconds(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func nanoseconds(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func picoseconds(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func date(_ value: Date) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var hours: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var minutes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var seconds: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milliseconds: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var microseconds: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var nanoseconds: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var picoseconds: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var date: Date { get }

Available where UnitType == UnitElectricCurrent

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func megaamperes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kiloamperes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func amperes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milliamperes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func microamperes(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var megaamperes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kiloamperes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var amperes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milliamperes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var microamperes: Double { get }

Available where UnitType == UnitElectricPotentialDifference

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func megavolts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilovolts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func volts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func millivolts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func microvolts(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var megavolts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilovolts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var volts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var millivolts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var microvolts: Double { get }

Available where UnitType == UnitEnergy

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilojoules(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func joules(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilocalories(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func calories(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilowattHours(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilojoules: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var joules: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilocalories: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var calories: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilowattHours: Double { get }

Available where UnitType == UnitFuelEfficiency

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func litersPer100Kilometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milesPerImperialGallon(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milesPerGallon(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var litersPer100Kilometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milesPerImperialGallon: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milesPerGallon: Double { get }

Available where UnitType == UnitLength

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func megameters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func hectometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func decameters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func meters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func decimeters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func centimeters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func millimeters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func micrometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func nanometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func picometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func inches(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func feet(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func yards(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func miles(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func scandinavianMiles(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func lightyears(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func nauticalMiles(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func fathoms(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func furlongs(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func astronomicalUnits(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func parsecs(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var megameters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var hectometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var decameters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var meters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var decimeters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var centimeters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var millimeters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var micrometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var nanometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var picometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var inches: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var feet: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var yards: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var miles: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var scandinavianMiles: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var lightyears: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var nauticalMiles: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var fathoms: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var furlongs: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var astronomicalUnits: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var parsecs: Double { get }

Available where UnitType == UnitMass

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilograms(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func grams(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func decigrams(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func centigrams(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milligrams(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func micrograms(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func nanograms(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func picograms(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func ounces(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func pounds(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func stones(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func metricTons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func shortTons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func carats(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func ouncesTroy(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func slugs(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilograms: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var grams: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var decigrams: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var centigrams: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milligrams: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var micrograms: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var nanograms: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var picograms: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var ounces: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var pounds: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var stones: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var metricTons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var shortTons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var carats: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var ouncesTroy: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var slugs: Double { get }

Available where UnitType == UnitPower

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func terawatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func gigawatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func megawatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilowatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func watts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milliwatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func microwatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func nanowatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func picowatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func femtowatts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func horsepower(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var terawatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var gigawatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var megawatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilowatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var watts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milliwatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var microwatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var nanowatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var picowatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var femtowatts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var horsepower: Double { get }

Available where UnitType == UnitSpeed

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func metersPerSecond(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilometersPerHour(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milesPerHour(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func knots(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var metersPerSecond: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilometersPerHour: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milesPerHour: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var knots: Double { get }

Available where UnitType == UnitInformationStorage

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kilobytes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func megabytes(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func gigabytes(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kilobytes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var megabytes: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var gigabytes: Double { get }

Available where UnitType == UnitVolume

  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func megaliters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func kiloliters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func liters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func deciliters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func centiliters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func milliliters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicKilometers(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicMeters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicDecimeters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicCentimeters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicMillimeters(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicInches(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicFeet(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicYards(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cubicMiles(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func acreFeet(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func bushels(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func teaspoons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func tablespoons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func fluidOunces(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func cups(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func pints(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func quarts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func gallons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func imperialTeaspoons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func imperialTablespoons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func imperialFluidOunces(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func imperialPints(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func imperialQuarts(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func imperialGallons(_ value: Double) -> Measurement<UnitType>
  • A shortcut to shorten measurement creation.

    Declaration

    Swift

    public static func metricCups(_ value: Double) -> Measurement<UnitType>
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var megaliters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var kiloliters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var liters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var deciliters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var centiliters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var milliliters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicKilometers: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicMeters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicDecimeters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicCentimeters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicMillimeters: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicInches: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicFeet: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicYards: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cubicMiles: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var acreFeet: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var bushels: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var teaspoons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var tablespoons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var fluidOunces: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var cups: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var pints: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var quarts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var gallons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var imperialTeaspoons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var imperialTablespoons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var imperialFluidOunces: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var imperialPints: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var imperialQuarts: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var imperialGallons: Double { get }
  • A convenient way to always convert before extracting the value.

    Getting a value from Measurement without conversion to the expected unit is error-prone. It requires verifying the context during the PR. To simplify the code, keep the data in Measurement and convert using this method whenever need a value.

    Declaration

    Swift

    public var metricCups: Double { get }