Trait ndarray_rand::rand_distr::num_traits::ops::checked::CheckedAdd [−][src]
Performs addition that returns None
instead of wrapping around on
overflow.
Required methods
pub fn checked_add(&self, v: &Self) -> Option<Self>
[src]
Adds two numbers, checking for overflow. If overflow happens, None
is
returned.