pub trait TypeMax {
// Required method
fn type_max() -> Self;
}Expand description
For types with a maximum value.
- Not all
Nums implementMinValue/MaxValue, because they may not have value limits. For example a heap allocated int could rise infinitly until there is no more heap memory.
Required Methods§
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.