Skip to main content

Crate neco_diffcore

Crate neco_diffcore 

Source
Expand description

Line-level and character-level diff computation with hunk mapping and side-by-side view support.

Structs§

ByteRange
Byte range reference into an original or new text.
DiffHunk
Group of contiguous changes with surrounding context lines.
DiffLine
One line in a diff result with its operation and source ranges.
DiffResult
Result of a line-level diff computation.
IntraLineDiff
Character-level diff result for one line pair.
IntraLineRange
Character-level diff range within a single line.
SideBySideLine
Side-by-side diff row pairing left and right lines.
SideLine
One side of a side-by-side diff row.

Enums§

DiffOp
Diff operation kind.

Functions§

diff
Compute a line-level diff between two texts using the Myers O(ND) algorithm.
diff_intra_line
Compute a character-level diff between two lines.
diff_to_patches
Convert a diff result to a list of TextPatch values that can be applied to the old text.
to_side_by_side
Convert a diff result to side-by-side display rows.