Skip to main content

Module diff

Module diff 

Source
Expand description

Diff utilities for generating structured diffs.

Structs§

DiffBundle
A diff rendered with both structured hunks and formatted text.
DiffHunk
A diff hunk with metadata for old/new ranges.
DiffLine
Metadata for a single line inside a diff hunk.
DiffOptions
Options for diff generation.

Enums§

Chunk
Represents a chunk of text in a diff (Equal, Delete, or Insert).
DiffLineKind
A single diff line annotated with metadata and type.

Functions§

compute_diff
Compute a structured diff bundle.
compute_diff_chunks
Compute an optimal diff between two strings using Myers algorithm.