Function offset

Source
pub fn offset(n: usize, i: usize, off: isize) -> usize
Expand description

Computes modular offset safely for indices.