Skip to main content

get_position_from_content

Function get_position_from_content 

Source
pub fn get_position_from_content(
    content: &str,
    byte_offset: usize,
) -> (usize, usize)
Expand description

Get (line, column) from a byte offset in source content.