pub fn max_by<T, F>(v1: T, v2: T, compare: F) -> T
Expand description
Returns the maximum of two values with respect to the specified comparison function.
Returns the second argument if the comparison determines them to be equal.
pub fn max_by<T, F>(v1: T, v2: T, compare: F) -> T
Returns the maximum of two values with respect to the specified comparison function.
Returns the second argument if the comparison determines them to be equal.