[−][src]Trait sp_arithmetic::traits::Saturating
Simple trait to use checked mul and max value to give a saturated mul operation over supported types.
Required methods
fn saturating_add(self, o: Self) -> Self
Saturated addition - if the product can't fit in the type then just use max-value.
fn saturating_sub(self, o: Self) -> Self
Saturated subtraction - if the product can't fit in the type then just use max-value.
fn saturating_mul(self, o: Self) -> Self
Saturated multiply - if the product can't fit in the type then just use max-value.