pub fn line_start_byte_offsets(source: &str) -> Vec<usize>Expand description
Returns the byte offset of the start of each line in source: result[line - 1] is the start
of 1-based line line (matching proc_macro2::LineColumn::line’s convention).
- Complexity: O(n) in
source.len().