Module libdiffsitter::render
source · 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
- The parameters a Renderer instance receives to render a diff.
- The parameters required to display a diff for a particular document
- The colors to use when highlighting additions and deletions
- Configurations and templates for different configuration aliases
- An iterator over the variants of Self
Enums
- The formatting directives to use with emphasized text in the line of a diff
Traits
- An interface that renders given diff data.