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§
- Consume
Binary Hunk - An adapter with
ConsumeHunkimplementation to call a delegate which receives each stringified hunk. - Context
Size - Defines the size of the context printed before and after each change.
- Hunk
Header - Holds information about a unified diff hunk, specifically with respect to line numbers.
Enums§
- Diff
Line Kind - Represents the type of a line in a unified diff.
Traits§
- Consume
Binary Hunk Delegate - A trait for use in conjunction with
ConsumeBinaryHunk. - Consume
Hunk - A utility trait for use in
UnifiedDiff.