[][src]Function haru::ast::pos_to_line

pub fn pos_to_line(input: &str, pos: usize) -> (usize, usize)

Converts a index in string to a tuple of (line, col) position information.