[−][src]Trait sp_runtime::traits::Saturating
Saturating arithmetic operations, returning maximum or minimum values instead of overflowing.
Required methods
fn saturating_add(self, rhs: Self) -> Self[−]
Saturating addition. Compute self + rhs, saturating at the numeric bounds instead of
overflowing.
fn saturating_sub(self, rhs: Self) -> Self[−]
Saturating subtraction. Compute self - rhs, saturating at the numeric bounds instead of
overflowing.
fn saturating_mul(self, rhs: Self) -> Self[−]
Saturating multiply. Compute self * rhs, saturating at the numeric bounds instead of
overflowing.
fn saturating_pow(self, exp: usize) -> Self[−]
Saturating exponentiation. Compute self.pow(exp), saturating at the numeric bounds
instead of overflowing.
Implementors
impl Saturating for FixedI64[src][+]
impl Saturating for FixedI128[src][+]
impl Saturating for FixedU128[src][+]
impl Saturating for PerU16[src][+]
impl Saturating for Perbill[src][+]
impl Saturating for Percent[src][+]
impl Saturating for Permill[src][+]
impl Saturating for Perquintill[src][+]
impl<T> Saturating for T where
T: Clone + PartialOrd<T> + Bounded + Zero + One + CheckedMul + Saturating, [src][+]
T: Clone + PartialOrd<T> + Bounded + Zero + One + CheckedMul + Saturating,