pub trait SaturatingInto<T>: Sized {
// Required method
fn saturating_into(self) -> T;
}Expand description
Conversion which saturates at the maximum or maximum instead of overflowing
Required Methods§
Sourcefn saturating_into(self) -> T
fn saturating_into(self) -> T
Performs the saturating conversion
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.