pub trait OverflowingAdd<RHS = Self> {
type Output;
// Required method
fn overflowing_add(self, other: RHS) -> (Self::Output, bool);
}
Expand description
Adds two numbers.
Returns a tuple of the sum along with a boolean indicating whether an arithmetic overflow
occurred. If an overflow occurred, then the wrapped number is returned.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.
This is a wrapper over the overflowing_add
functions in the standard library, for
example this one.