pub fn pmax<T>(a: T, b: T) -> Twhere
T: PartialOrd<T>,
Expand description
Compares and returns the maximum of two PartialOrd
ered values.
Complements core::cmp::
max
which requires
Ord
Examples
use devela::cmp::pmax;
assert_eq![0.4, pmax(0.2, 0.4)];