1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/*! The **si** module provides a unit system for use with SI units. It was generated using the `make_units!` macro. See its documentation for more information. It will also define derived units, although this is not implemented yet. */ #![allow(missing_docs)] make_units! { SI, Unitless, one; base { Meter, m, m; Kilogram, kg, kg; Second, s, s; Ampere, amp, A; Kelvin, kelvin, K; Candela, candela, cd; Mole, mole, mol; } derived { newton: Newton = Kilogram * Meter / (Second * Second); } }