Skip to main content

build_segmentation

Function build_segmentation 

Source
pub const fn build_segmentation<const N: usize, const M: usize>(
    lens: [usize; M],
) -> [usize; N]
Expand description

Builds a per-byte segment map from the segment lengths.

The returned table maps each key byte to its segment index.