/typed_units

Next-generation crate for compile-time dimensional analysis

Primary LanguageRustGNU General Public License v3.0GPL-3.0

uom-ng

Design goals:

  • Ability to express arbitrary combinations of units (via typenum)
  • Reasonably short compilation errors (using const generics)
  • Units should be separate from values (like in C++'s units, unlike in dimensioned)
  • let speed = 10_f32 * (m / s) support (like dimensioned)
  • Storage types, prefixed unit aliases & unit categories toggled via cargo features
  • Lowercase constants
  • Unit conversions
  • Nalgebra/glam/whatever support under feature flag