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§
- Label
Style - 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.