Structures
The following structures are available globally.
-
A
MeasurementZone
is a model type that bounds values between a upper and lower bounds.
See moreMeasurementZone
may be a Heart Rate Zone, FTP Zone, or used for other measurements that you wish to bound between an upper and lower valueDeclaration
Swift
public struct MeasurementZone
-
A
See moreStringMeasurement
is a model type that holds aString
value associated with aUnit
.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 aNumeric
value that has an associatedvalid
flag.
See moreValidatedBinaryFloatingPoint
provides feedback on validity of valueDeclaration
Swift
@available(swift 3.1) public struct ValidatedBinaryFloatingPoint<Element> where Element : BinaryFloatingPoint
-
A
ValidatedBinaryInteger
is a model type that holds aNumeric
value that has an associatedvalid
flag.
See moreValidatedBinaryInteger
provides feedback on validity of valueDeclaration
Swift
@available(swift 3.1) public struct ValidatedBinaryInteger<Element> where Element : BinaryInteger
-
A
ValidatedMeasurement
is a model type that holds aDouble
value associated with aUnit
.ValidatedMeasurement
act the same wayMeasurement
does, but provides feedback on validity of dataValidatedMeasurements support a large set of operators, including
See more+
,-
,*
,/
, and a full set of comparison operators.Declaration
Swift
@available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *) public struct ValidatedMeasurement<UnitType> : Comparable, Equatable where UnitType : Unit