Expand description

This crate contains definitions of newtypes corresponding to measurement units, including several that are passed across node boundaries in Messages.

Functionality has been added opportunistically so far and is not at all complete. A fully developed measurement unit library would probably require const generics, so the compiler can interpret exponents applied to different unit types.


  • Defines a measurement unit with an underlying float scalar type. This allows definition of associated functions that delegate to those of the underlying type.
  • Defines a measurement unit, with an underlying scalar type.
  • Defines aspects of a measurement unit that are applicable regardless of the scalar type. mul_scalar and div_scalar are defined to eliminate some common needs for shedding the unit type.