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§

source

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.

Implementations on Foreign Types§

source§

impl OverflowingAdd for i8

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for i16

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for i32

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for i64

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for u8

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for u16

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for u32

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for u64

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for U128

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for U256

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

source§

impl OverflowingAdd for U512

source§

fn overflowing_add(self, rhs: Self) -> Result<Self, ExecutionError>

Implementors§