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