pub trait AddSaturating<Rhs = Self>where
Rhs: ?Sized,{
type Output;
fn add_saturating(&self, rhs: &Rhs) -> Self::Output;
}Expand description
Binary operator for adding two values, bounding the sum to MAX if an overflow occurs.
pub trait AddSaturating<Rhs = Self>where
Rhs: ?Sized,{
type Output;
fn add_saturating(&self, rhs: &Rhs) -> Self::Output;
}Binary operator for adding two values, bounding the sum to MAX if an overflow occurs.