Skip to main content

split_lines

Function split_lines 

Source
pub fn split_lines(text: &str) -> Vec<(usize, &str)>
Expand description

Split text into lines (by ‘\n’), returning each line’s text and the global char index where it starts.