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