pub fn min<T: Copy + PartialOrd>(a: T, b: T) -> TExpand description
Returns the smaller of two values using PartialOrd.
This exists because std::cmp::min requires Ord, but quantities are
float-backed and only PartialOrd.
pub fn min<T: Copy + PartialOrd>(a: T, b: T) -> TReturns the smaller of two values using PartialOrd.
This exists because std::cmp::min requires Ord, but quantities are
float-backed and only PartialOrd.