Structures

The following structures are available globally.

  • A MeasurementZone is a model type that bounds values between a upper and lower bounds.

    MeasurementZone may be a Heart Rate Zone, FTP Zone, or used for other measurements that you wish to bound between an upper and lower value

    See more

    Declaration

    Swift

    public struct MeasurementZone
  • A StringMeasurement is a model type that holds a String value associated with a Unit.

    See more

    Declaration

    Swift

    @available(swift 3.1)
    @available(iOS 10.0, tvOS 10.0, watchOS 3.0, OSX 10.12, *)
    public struct StringMeasurement<UnitType> : Equatable where UnitType : Unit
  • A ValidatedBinaryFloatingPoint is a model type that holds a Numeric value that has an associated valid flag.

    ValidatedBinaryFloatingPoint provides feedback on validity of value

    See more

    Declaration

    Swift

    @available(swift 3.1)
    public struct ValidatedBinaryFloatingPoint<Element> where Element : BinaryFloatingPoint
  • A ValidatedBinaryInteger is a model type that holds a Numeric value that has an associated valid flag.

    ValidatedBinaryInteger provides feedback on validity of value

    See more

    Declaration

    Swift

    @available(swift 3.1)
    public struct ValidatedBinaryInteger<Element> where Element : BinaryInteger
  • A ValidatedMeasurement is a model type that holds a Double value associated with a Unit.

    ValidatedMeasurement act the same way Measurement does, but provides feedback on validity of data

    ValidatedMeasurements support a large set of operators, including +, -, *, /, and a full set of comparison operators.

    See more

    Declaration

    Swift

    @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
    public struct ValidatedMeasurement<UnitType> : Comparable, Equatable where UnitType : Unit