MinMaxResult is an enum returned by minmax. See Itertools::minmax() for more detail.
MinMaxResult
minmax
Itertools::minmax()
Implementation guts for minmax and minmax_by_key.
minmax_by_key