const-units
A library that lets you validate the dimensions of you quantities at compile time
Example
Okay
use a; // `a` is the prefix for `atto` (10^-18)
use m; // `m` is the abbreviation for `meter`
use Quantity; // Represents a number with a dimension
// Input attometers, return square attometers
.powi }>
// Input attometers, return attometers
}> > // `(1, 2)` represents 1/2
}
Broken