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§
Object Safety§
This trait is not object safe.