pub const fn calc_element_slot(idx: usize, elem_bytes: usize) -> usizeExpand description
Calculate which slot an array element at index idx starts in.
Elements cannot span slot boundaries, so we compute how many elements fit per slot and use that to determine the slot index.