Structs§
- Diff
Colors - ANSI colour constants for diff rendering.
- Diff
Line - One line of a diff.
- Parsed
Diff - A parsed diff with optional file header and hunks.
Enums§
- Diff
Line Kind - A single line in a diff hunk with its kind.
Functions§
- format_
diff - One-shot: parse a unified diff string and render it with colours.
- parse
- Parse a unified diff string into structured lines.
- render
- Render a parsed diff to ANSI-coloured terminal text.