Skip to main content

week_index

Function week_index 

pub(crate) fn week_index(offset: i64) -> usize
Expand 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.