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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".