pub trait OverflowingSub: Sized {
// Required method
fn overflowing_sub(self, rhs: Self) -> Result<Self, ExecutionError>;
}Expand description
Overflowing subtraction, returning the result of addition or ArithmeticsError::SubtractingOverflow.
Required Methods§
Sourcefn overflowing_sub(self, rhs: Self) -> Result<Self, ExecutionError>
fn overflowing_sub(self, rhs: Self) -> Result<Self, ExecutionError>
Overflowing subtraction. Compute self - rhs, returns the result or error if overflowed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.