Trait Shrink
Source pub trait Shrink<T> {
// Required method
fn shrink(self) -> T;
}
Expand description
Perform saturating truncation.
Perform saturating truncation.
If the value fits into the target type, return that value.
Otherwise, return the closest value that does fit.