Skip to main content

Module reporting

Module reporting 

Source
Available on crate feature reporting only.
Expand description

Reporting for errors, warnings, and everything else.

The code in this module is heavily inspired by codespan-reporting and ariadne.

Structs§

Diagnostic
Wright’s Diagnostic type wraps one from codespan_reporting to make it compatible with things like Fragment and SourceId.
Highlight
A highlighted section of a Source that’s used in a Diagnostic.

Enums§

LabelStyle
The style/priority applied to a Highlight being rendered.
Severity
A severity level for diagnostic messages.

Functions§

get_stdout_color
Get the current ColorChoice used when printing Diagnostics to the standard output.
set_stdout_color
Set the ColorChoice to use when printing Diagnostics to the standard output.