pub trait MaxValue {
const MAX: Self;
}Expand description
Provides the maximum value for a numeric type as an associated constant.
Implemented for all primitive integer types.
§Examples
use platform_num::MaxValue;
assert_eq!(<u64 as MaxValue>::MAX, u64::MAX);Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.