Function rs_utils::numeric::max_partial [] [src]

pub fn max_partial<S: PartialOrd + Copy>(lhs: S, rhs: S) -> S

Returns the maximum of two partially ordered values, returning the rhs when they are incomparable.

This follows the convention of f32::min and f32::max, but the opposite convention is used internally by the collision crate.