Function hazardflow_designs::std::value::wrapping_add
source · pub fn wrapping_add<const N: usize>(a: U<N>, b: U<N>, max: U<{ _ }>) -> U<N>
Expand description
Returns (a
+ b
) mod max
.
When using this method, make sure that max(a
, b
) < max
and max
<= 2^N
.