piston_window::modular_index
pub fn next(n: usize, i: usize) -> usize
Computes next modular index safely.