Trait truncate_integer::Shrink[][src]

pub trait Shrink<T> {
    fn shrink(self) -> T;
}
Expand description

Perform saturating truncation.

Required methods

Perform saturating truncation.

If the value fits into the target type, return that value. Otherwise, return the closest value that does fit.

Implementations on Foreign Types

Implementors