Function segments_for
pub fn segments_for(text_len: usize, spans: &[MarkSpan]) -> Vec<MarkSegment>Expand description
Produce the partition. Boundaries: every span’s start and end,
plus 0 and text_len. The resulting segments together cover
[0, text_len).