pub trait SaturatingAdd<Rhs = Self> {
    type Output;
    // Required method
    fn saturating_add(self, other: Rhs) -> Self::Output;
}Expand description
Saturating addition operation.
Required Associated Types§
Required Methods§
Sourcefn saturating_add(self, other: Rhs) -> Self::Output
 
fn saturating_add(self, other: Rhs) -> Self::Output
Returns the sum of self and other, but saturates instead of overflowing.