Skip to main content

parse_diff_line

Function parse_diff_line 

Source
pub fn parse_diff_line(line: &str) -> DiffLineKind
Expand description

Parse one line of diff output. Lines that don’t follow the {number}{marker}{content} shape — including malformed or truncated input — fall through to Context so the renderer’s match stays exhaustive without panicking.