pub trait MaxValue: Sized {
const MAX: Self;
// Provided methods
fn is_max(&self) -> bool
where Self: PartialEq { ... }
fn is_not_max(&self) -> bool
where Self: PartialEq { ... }
}Required Associated Constants§
Provided Methods§
fn is_max(&self) -> boolwhere
Self: PartialEq,
fn is_not_max(&self) -> boolwhere
Self: PartialEq,
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.