extern crate dimensioned as dim; use crate::dim::si::{Meter, Second}; use crate::dim::typenum::Quot; type MPS = Quot, Second>; fn speed(dist: Meter, time: Second) -> MPS { dist / time } #[test] fn derived() { let d = Meter::new(3.0); let t = Second::new(2.0); let v = speed(d, t); assert_eq!(d / t, v); }