pub trait ClampedInto<T> {
// Required method
fn clamped_into(self) -> T;
}
Expand description
Conversion between types with silent value clamping.
Required Methods§
Sourcefn clamped_into(self) -> T
fn clamped_into(self) -> T
Converts self into T
capping values at T
’s maximum or minimum boundaries.