Trait num_traits::ops::overflowing::OverflowingAdd [−][src]
pub trait OverflowingAdd: Sized + Add<Self, Output = Self> { fn overflowing_add(&self, v: &Self) -> (Self, bool); }
Performs addition with a flag for overflow.
Required methods
fn overflowing_add(&self, v: &Self) -> (Self, bool)
[src]
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.