OverflowingAdd
Performs addition with a flag for overflow.
Fully qualified path: core::num::traits::ops::overflowing::OverflowingAdd
pub trait OverflowingAdd<T>
Trait functions
overflowing_add
Returns a tuple of the sum along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.
Fully qualified path: core::num::traits::ops::overflowing::OverflowingAdd::overflowing_add
fn overflowing_add(self: T, v: T) -> (T, bool)