Skip to main content

line_col

Function line_col 

Source
pub fn line_col(source: &str, byte: usize) -> (usize, usize)
Expand description

1-based (line, column) for a byte offset; columns count characters.