Trait palette::num::SaturatingAdd
source · 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.