Structures
The following structures are available globally.
-
A
MeasurementZoneis a model type that bounds values between a upper and lower bounds.
See moreMeasurementZonemay 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 MeasurementZoneextension MeasurementZone: Encodable -
A
See moreStringMeasurementis a model type that holds aStringvalue associated with aUnit.Declaration
Swift
@available(swift 3.1) @available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *) public struct StringMeasurement<UnitType> : Equatable where UnitType : Unitextension StringMeasurement : CustomStringConvertible, CustomDebugStringConvertible, CustomReflectableextension StringMeasurement: Encodable -
A
ValidatedBinaryFloatingPointis a model type that holds aNumericvalue that has an associatedvalidflag.
See moreValidatedBinaryFloatingPointprovides feedback on validity of valueDeclaration
Swift
@available(swift 3.1) public struct ValidatedBinaryFloatingPoint<Element> where Element : BinaryFloatingPointextension ValidatedBinaryFloatingPoint: CustomStringConvertible, CustomDebugStringConvertible, CustomReflectableextension ValidatedBinaryFloatingPoint: Codable -
A
ValidatedBinaryIntegeris a model type that holds aNumericvalue that has an associatedvalidflag.
See moreValidatedBinaryIntegerprovides feedback on validity of valueDeclaration
Swift
@available(swift 3.1) public struct ValidatedBinaryInteger<Element> where Element : BinaryIntegerextension ValidatedBinaryInteger: CustomStringConvertible, CustomDebugStringConvertible, CustomReflectableextension ValidatedBinaryInteger: Codable -
A
ValidatedMeasurementis a model type that holds aDoublevalue associated with aUnit.ValidatedMeasurementact the same wayMeasurementdoes, 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(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *) public struct ValidatedMeasurement<UnitType> : Comparable, Equatable where UnitType : Unitextension ValidatedMeasurement: CustomStringConvertible, CustomDebugStringConvertible, CustomReflectableextension ValidatedMeasurement : Codable
Structures Reference