Crate fudiff

Source
Expand description

Implementation of the Fuzzy Unified Diff Format. This module provides functions to compute, render, parse, apply, and revert fuzzy diffs.

Structs§

FuDiff
Represents a complete fuzzy diff consisting of multiple hunks.
Hunk
Represents a single hunk of changes within a diff.

Enums§

Error
Error type for FuDiff operations.

Functions§

diff
Computes the fuzzy diff between the given ‘old’ and ‘new’ strings. Returns a FuDiff representing the hunks of changes.
parse
Parses a unified diff format string into a FuDiff. Returns an error if no valid hunks are found or if parsing fails.

Type Aliases§

Result
A type alias for diff operation results.