Skip to main content

LineColToByte

Function LineColToByte 

Source
pub fn LineColToByte(Source: &str, Line: usize, Col: usize) -> Option<usize>
Expand description

Convert a 1-based (line, col) pair to a byte offset in Source. col is 0-based character offset within the line (proc_macro2 convention).