Skip to main content

byte_offset

Function byte_offset 

Source
fn byte_offset(src: &str, line: usize, column: usize) -> usize
Expand description

A 1-based line/column pair as a byte offset. serde reports (0, 0) for a failure with no position (an early EOF), which lands at the start.