pub trait OverflowingAdd: Sized {
// Required method
fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>;
}Expand description
Overflowing addition, returning the result of addition or ArithmeticsError::AdditionOverflow.
Required Methods§
Sourcefn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>
fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>
Overflowing addition. 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".