1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
/** The foot, pound, second system, using the mass pound as a base unit. Note: this system is incomplete. More derived units and constants are coming. Following, we list all of the [base units](#base-units), [derived units](#derived-units), and [constants](#constants) that are defined in this unit system. # Base Units Constant | Unit | Print Token | Dimensionn ---|---|---|--- SQRTFT | SqrtFoot | sqrtft | SQRTLB | SqrtPound | sqrtlb | S | Second | s | Time # Derived Units Constant | Unit | Unit Definition | Dimension ---|---|---|--- FT | Foot | SqrtFoot * SqrtFoot | Length LB | Pound | SqrtPound * SqrtPound | Mass # Constants Name | Constant | Value | Unit | Dimension ---|---|---|---|--- */ pub mod fps { make_units! { FPS; ONE: Unitless; base { SQRTFT: SqrtFoot, "sqrtft"; SQRTLB: SqrtPound, "sqrtlb"; S: Second, "s", Time; } derived { FT: Foot = (SqrtFoot * SqrtFoot), Length; LB: Pound = (SqrtPound * SqrtPound), Mass; } constants { } fmt = false; } pub use self::f64consts::*; #[test] fn test_fps_constants() { #[allow(unused_imports)] use f64prefixes::*; #[allow(unused_imports)] use core::f64::consts; } }