Skip to main contentCrate valua_diagnostics
Source - CollectingReporter
- A simple in-memory reporter useful for testing.
- ConsoleReporter
- Writes diagnostics to stderr using
codespan-reporting. - Diagnostic
- A structured diagnostic message with optional error code, fix suggestion,
and secondary source spans.
- Span
- Byte-range + line/column position within a source file.
- Severity
- Severity level of a diagnostic message.
- Reporter
- Trait for sinks that receive and display diagnostics.
- render_diagnostic_to_string
- Render a diagnostic to a plain string with no ANSI color codes.
Intended for tests that verify visual layout of error output.