pub trait ConstWrappingSub: Sized + ConstOverflowingSub {
// Required method
fn wrapping_sub(&self, v: &Self) -> Self;
}Expand description
Const-compatible wrapping subtraction.
Required Methods§
Sourcefn wrapping_sub(&self, v: &Self) -> Self
fn wrapping_sub(&self, v: &Self) -> Self
Wrapping (modular) subtraction. Computes self - v, 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".