pub trait Order {
// Required methods
fn max(&self, other: &Self) -> Self;
fn min(&self, other: &Self) -> Self;
fn clamp(&self, min: &Self, max: &Self) -> Self;
}Required Methods§
fn max(&self, other: &Self) -> Self
fn min(&self, other: &Self) -> Self
fn clamp(&self, min: &Self, max: &Self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".