pub fn min_by<T, F: FnOnce(&T, &T) -> Ordering>(v1: T, v2: T, compare: F) -> T
Available on non-crate feature
ferrocene_certified
only.Expand description
Returns the minimum of two values with respect to the specified comparison function.
Returns the first argument if the comparison determines them to be equal.
The parameter order is preserved when calling the compare
function, i.e. v1
is
always passed as the first argument and v2
as the second.