Function week_index
pub(crate) fn week_index(offset: i64) -> usizeExpand description
Converts a non-negative weekday offset to an index into a week mask.
ยงPanics
Panics if offset is negative. Callers reduce modulo seven first, so the
value is 0..=6.