pub trait Clamp {
// Required methods
fn clamp(self, min: Self, max: Self) -> Self;
fn clamp_min(self, min: Self) -> Self;
fn clamp_max(self, max: Self) -> Self;
}
Expand description
Trait for clamping a value.
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.