Expand description
Utilities and modules related to rendering diff outputs.
We have a modular system for displaying diff data to the terminal. Using this system makes it much easier to extend with new formats that people may request.
This library defines a fairly minimal interface for renderers: a single trait called
Renderer. From there implementers are free to do whatever they want with the diff data.
This module also defines utilities that may be useful for Renderer implementations.
Structs§
- Display
Data - The parameters a Renderer instance receives to render a diff.
- Document
Diff Data - The parameters required to display a diff for a particular document
- Highlight
Colors - The colors to use when highlighting additions and deletions
- Render
Config - Configurations and templates for different configuration aliases
- Renderers
Iter - An iterator over the variants of Renderers
Enums§
Traits§
- Renderer
- An interface that renders given diff data.