Skip to main content

line_starts

Function line_starts 

Source
fn line_starts(text: &str) -> Vec<usize>
Expand description

Byte offsets of the start of each line (including line 0 at offset 0).