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 keys
for achieving high performance reverse iteration.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".