pub trait WrappingSub: Sized + Sub<Self> {
// Required method
fn wrapping_sub(self, v: Self) -> <Self as Sub<Self>>::Output;
}Expand description
Performs subtraction that wraps around on overflow.
Required Methods§
Sourcefn wrapping_sub(self, v: Self) -> <Self as Sub<Self>>::Output
fn wrapping_sub(self, v: Self) -> <Self as Sub<Self>>::Output
Wrapping (modular) subtraction. 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".