Function hazardflow_designs::std::value::wrapping_inc
source · pub fn wrapping_inc<const N: usize>(value: U<N>, max: U<{ _ }>) -> U<N>
Expand description
Increases value
in range [0, max
- 1].
When using this method, make sure that max
<= 2^N
.