pub trait SaturatingInto<T>: Sized {
    fn saturating_into(self) -> T;
}
Expand description

Converts a value from one type to another, where if the conversion is not exact the result is set to the maximum or minimum value of the result type, whichever is closer.

It is recommended that this trait is not implemented directly; it is automatically implemented when SaturatingFrom is implemented.

Required Methods

Implementors