Expand description
§Description
Procedural macro for generate struct Unit in compile time.
This package is the implementation of the procedural macro. For use these macros in your code, unitage is convenient.
§Usage
extern crate typenum;
use unit_proc::unit;
use const_frac::Frac;
use physical_quantity:: { Unit, Dim };
use typenum;
let height = unit!("ft.").pq(5f64) + unit!("in.").pq(8f64);
let cm = unit!("cm").value(height);
assert_eq!(cm, 172.72);
§Project status
This package is in the very early stage.