Crate runtime_units

source ·

Modules§

Macros§

Structs§

  • Amount of substance (base UnitDefinition mole, mol).
  • Angle (dimensionless quantity).
  • Electric current (base UnitDefinition ampere, A).
  • Length (base UnitDefinition meter, m).
  • Luminance (base UnitDefinition candela per square meter, cd · m⁻²).
  • Mass (base UnitDefinition kilogram, kg).
  • Temperature interval (base UnitDefinition kelvin, K).
  • Time (base UnitDefinition second, s).

Enums§

  • 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.
  • A list of unit types supported for the library (given feature flags selected).
  • 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.