unit_system_derive
Proc_macro derivation of Unit for the
unit_system
crate.
It derives Unit for a struct B and declares structs which also derive
Unit and whose BaseUnit is the initial struct B. They form a typical SI
unit system. Roughly,
;
results into
// The base unit is its own `BaseUnit`
;
;
;
;
;
;
;
/// kiloB is 1000 B
// ...the same for the rest of units