pub trait FromInt32Saturating {
    fn from_saturating(val: i32) -> Self;
}
Expand description

An object that can be constructed from an i32, with saturating semantics.

Required Methods

Construct an instance of this object from val.

If val is too low, treat it as the lowest value that would be valid. If val is too high, treat it as the highest value that would be valid.

Implementations on Foreign Types

Implementors