increment_decrement

Function increment_decrement 

Source
fn increment_decrement<const INC: bool, T: OneTrait + SubAssign + AddAssign>(
    value: T,
) -> T
Expand description

This function either increments or decrements its argument, depending on the INC value (where a true value corresponds to the increment).