Skip to main content

line_start

Function line_start 

Source
pub fn line_start(src: &str, byte: usize) -> usize
Expand description

Byte offset of the start of the line containing byte in src.