pub(crate) trait Clamp: Sized {
// Required methods
fn clamp_below_max(self, max: Option<Self>) -> Self;
fn clamp_between_extremums(self, min: Self, max: Option<Self>) -> Self;
}
Required Methods§
fn clamp_below_max(self, max: Option<Self>) -> Self
fn clamp_between_extremums(self, min: Self, max: Option<Self>) -> Self
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.