pub trait SaturatingAdd<Rhs = Self> {
type Output;
// Required method
fn saturating_add(self, rhs: Rhs) -> Self::Output;
}Expand description
Addition operator which returns the closest possible value in the event of an overflow or underflow.
Required Associated Types§
Required Methods§
fn saturating_add(self, rhs: Rhs) -> Self::Output
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".