pub trait ClampBounds<T>: Sized {
// Required method
fn clamp(self, value: T) -> T;
}🔬This is a nightly-only experimental API. (
clamp_bounds #147781)Expand description
Trait for ranges supported by Ord::clamp_to.
Required Methods§
Sourcefn clamp(self, value: T) -> T
🔬This is a nightly-only experimental API. (clamp_bounds #147781)
fn clamp(self, value: T) -> T
clamp_bounds #147781)The implementation of Ord::clamp_to.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".