Module diff

Source
Expand description

Structs and other convenience methods for handling logical concepts pertaining to diffs, such as hunks.

Structs§

Hunk
A grouping of consecutive edit lines for a document
HunkAppender
Hunks
The hunks that correspond to a document
Line
The edit information representing a line
MidSnakeInfo
Information relevant for a middle snake calculation
Myers
MyersFrontiers
The frontiers for the Myers diff algorithm
RichHunks
RichHunksBuilder
A builder struct for RichHunks.

Enums§

DocumentType
A generic type for diffs that source from one of two documents.
HunkInsertionError
Types of errors that come up when inserting an entry to a hunk

Traits§

Engine
A difference engine provider

Functions§

compute_edit_script
Compute the hunks corresponding to the minimum edit path between two documents.

Type Aliases§

RichHunk
A hunk with metadata about which document it came from.