Measurement
Adds quantities and units to rust to allow unit safe computation with zero cost abstraction.
Note: this crate uses an unstable feature which requires you to add #![feature(generic_const_exprs)] and use the nightly compiler.
How to use
Add the generic_const_exprs feature by adding #![feature(generic_const_exprs)] to your main.rs or lib.rs file.
use ;
use ;
Define new quantities
currently only three dimensions are supported: Time, Length, Mass
use ;
pub type Length = ;
pub type Mass = ;
pub type Time = ;
pub type ElectricalCurrent = ;
pub type ThermodynamicTemperatur = ;
pub type AmountOfSubstance = ;
pub type LuminousIntensity = ;
pub type Velocity = >;
pub type Acceleration = >;
pub type Force = >;