pub const fn build_segmentation<const N: usize, const M: usize>( lens: [usize; M], ) -> [usize; N]
Builds a per-byte segment map from the segment lengths.
The returned table maps each key byte to its segment index.