Trait odra_core::arithmetic::OverflowingAdd
source · 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.
Object Safety§
This trait is not object safe.