public struct RSDUnitConverter
RSDUnitConverter is a static struct for defined unit converters for converting between US English (imperial)
to metric units. This is used to allow for displaying a person’s height or weight in imperial units, while
storing the value in standardized metric units.
The converter to use for mass measurements.
public static let poundAndOunces: RSDUnitConverter.USCustomaryUnitConverter<UnitMass>
The converter to use for length measurements.
public static let feetAndInches: RSDUnitConverter.USCustomaryUnitConverter<UnitLength>
USCustomaryUnitConverteris generic struct for converting measurements from various units.
NoteUS Customary and Imperial units measurements are typically shown using a
smallerunit such as
lb, oz. This converter will convert from a base unit (default will be metric) to two values, a larger and smaller unit, that are added together to represent a measurement. For example,
5 ft, 6 in.
public struct USCustomaryUnitConverter<UnitType> where UnitType : Dimension