Skip to main content

range_of

Function range_of 

Source
pub fn range_of(text: &str, hunk: &Hunk) -> (usize, usize)
Expand description

Where the new lines of a hunk are in text, as a byte range: empty, at the place the old lines were, when the hunk has no new lines.