forge_fmt

Function offset_to_line_column

Source
pub fn offset_to_line_column(content: &str, start: usize) -> (usize, usize)
Expand description

Converts the start offset of a Loc to (line, col)