Module unified_diff

Module unified_diff 

Source
Available on crate feature blob only.
Expand description

Facilities to produce the unified diff format.

Originally based on https://github.com/pascalkuthe/imara-diff/pull/14.

Structs§

ConsumeBinaryHunk
An adapter with ConsumeHunk implementation to call a delegate which receives each stringified hunk.
ContextSize
Defines the size of the context printed before and after each change.
HunkHeader
Holds information about a unified diff hunk, specifically with respect to line numbers.

Enums§

DiffLineKind
Represents the type of a line in a unified diff.

Traits§

ConsumeBinaryHunkDelegate
A trait for use in conjunction with ConsumeBinaryHunk.
ConsumeHunk
A utility trait for use in UnifiedDiff.