Crate runtime_units

Source

Modules§

array_quantity
errors
quantities
quantities_array
quantities_vector
traits
units
units_base
vector_quantity

Macros§

create_multivalue_quantities
create_multivalue_quantities_array_enum
create_multivalue_quantities_vec_enum
impl_quantity_array_ops
impl_quantity_ops
impl_quantity_vec_ops
prefix
quantity
system

Structs§

AmountOfSubstance
Amount of substance (base UnitDefinition mole, mol). Scalar storage of a quantity (f64 and AmountOfSubstanceUnit).
AmountOfSubstanceArray
Array storage for a series of values and AmountOfSubstanceUnit.
AmountOfSubstanceVec
Vector storage for a series of values and AmountOfSubstanceUnit.
Angle
Angle (dimensionless quantity). Scalar storage of a quantity (f64 and AngleUnit).
AngleArray
Array storage for a series of values and AngleUnit.
AngleVec
Vector storage for a series of values and AngleUnit.
Dimensionless
Dimensionless (dimensionless quantity). Scalar storage of a quantity (f64 and DimensionlessUnit).
DimensionlessArray
Array storage for a series of values and DimensionlessUnit.
DimensionlessVec
Vector storage for a series of values and DimensionlessUnit.
ElectricCurrent
Electric current (base UnitDefinition ampere, A). Scalar storage of a quantity (f64 and ElectricCurrentUnit).
ElectricCurrentArray
Array storage for a series of values and ElectricCurrentUnit.
ElectricCurrentVec
Vector storage for a series of values and ElectricCurrentUnit.
Length
Length (base UnitDefinition meter, m). Scalar storage of a quantity (f64 and LengthUnit).
LengthArray
Array storage for a series of values and LengthUnit.
LengthVec
Vector storage for a series of values and LengthUnit.
Luminance
Luminance (base UnitDefinition candela per square meter, cd · m⁻²). Scalar storage of a quantity (f64 and LuminanceUnit).
LuminanceArray
Array storage for a series of values and LuminanceUnit.
LuminanceVec
Vector storage for a series of values and LuminanceUnit.
Mass
Mass (base UnitDefinition kilogram, kg). Scalar storage of a quantity (f64 and MassUnit).
MassArray
Array storage for a series of values and MassUnit.
MassVec
Vector storage for a series of values and MassUnit.
TemperatureInterval
Temperature interval (base UnitDefinition kelvin, K). Scalar storage of a quantity (f64 and TemperatureIntervalUnit).
TemperatureIntervalArray
Array storage for a series of values and TemperatureIntervalUnit.
TemperatureIntervalVec
Vector storage for a series of values and TemperatureIntervalUnit.
Time
Time (base UnitDefinition second, s). Scalar storage of a quantity (f64 and TimeUnit).
TimeArray
Array storage for a series of values and TimeUnit.
TimeVec
Vector storage for a series of values and TimeUnit.

Enums§

Quantities
A wrapper to hold all quantities supported by this library. It is analogous to Units``, but when combined with the serde` feature flag, can serve as a way to serialize a quantity, not just the unit.
QuantitiesArray
A wrapper to hold all QuantitiesArray supported by this library. It is analogous to Units``, but when combined with the serde` feature flag, can serve as a way to serialize a quantity, not just the unit.
QuantitiesVec
A wrapper to hold all QuantitiesVec supported by this library. It is analogous to Units``, but when combined with the serde` feature flag, can serve as a way to serialize a quantity, not just the unit.
UnitTypes
A list of unit types supported for the library (given feature flags selected).
Units
A wrapper to hold all available units supported by the library. Contains utilities to convert from a given arbitrary unit to the underlying Quantity that is used to perform unit conversion calculations.