pub trait WrappingAdd: Sized + Add<Self> {
// Required method
fn wrapping_add(self, v: Self) -> <Self as Add<Self>>::Output;
}Expand description
Performs addition that wraps around on overflow.
Required Methods§
Sourcefn wrapping_add(self, v: Self) -> <Self as Add<Self>>::Output
fn wrapping_add(self, v: Self) -> <Self as Add<Self>>::Output
Wrapping (modular) addition. Computes self + other, wrapping around at the boundary of
the type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".