Function itertools::tuple_impl::add_then_div

source ยท
fn add_then_div(n: usize, a: usize, d: usize) -> Option<usize>
Expand description

(n + a) / d avoiding overflow when possible, returns None if it overflows.