Skip to main content

max_partial

Function max_partial 

Source
pub fn max_partial<S>(lhs: S, rhs: S) -> S
where S: Copy + PartialOrd,
Available on crate feature rs-utils only.
Expand description

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.