Skip to main content

Module diff

Module diff 

Source

Structs§

Hunk
Row

Enums§

RowKind

Functions§

diff
Diffs two projections line by line and groups the result into hunks with context unchanged lines around each change.
filter_formatting
Applies the formatting layer to hunks: finds changes that only move whitespace — re-indenting, re-spacing, re-wrapping a statement over more or fewer lines — and either turns them into context (hidden) or keeps nothing else (only).
inline_changes
The parts of two versions of a line that differ, compared token by token, or None when the lines have too little in common for highlighting the difference to help.

Type Aliases§

Marks
Byte ranges within a line.