pub trait Maximum: Ord {
    const MAX: Self;
}
Expand description

Trait for types for which a maximum possible value exists.

This exists primarily to play nicely with std::cmp::Reverse<T> keys for achieving high performance reverse iteration.

Required Associated Constants

The returned value must be greater than or equal to all possible values for this type.

Implementors