Skip to main content

line_col

Function line_col 

Source
pub fn line_col(src: &str, offset: usize) -> (usize, usize)
Expand description

The 1-based line and column of byte offset in src.