Module 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§

DisplayData
The parameters a Renderer instance receives to render a diff.
DocumentDiffData
The parameters required to display a diff for a particular document
HighlightColors
The colors to use when highlighting additions and deletions
RenderConfig
Configurations and templates for different configuration aliases
RenderersIter
An iterator over the variants of Renderers

Enums§

Emphasis
The formatting directives to use with emphasized text in the line of a diff
Renderers

Traits§

Renderer
An interface that renders given diff data.