Re-exports§
Modules§
- reporting
- Rendering and error reporting implementation details.
Macros§
Structs§
- Label
- Represents a diagnostic label.
- Labeled
Span - A labeled
SourceSpan. - Named
Source - Utility struct for when you have a regular
SourceCodetype that doesn’t implementname. For exampleString. Or if you want to override thenamereturned by theSourceCode. - Related
Error - This type allows rolling up a diagnostic into a parent error
- Related
Label - This type is used to associate a more complex label or set of labels with some other error.
- Report
- Core Diagnostic wrapper type.
Enums§
- Severity
Diagnosticseverity. Intended to be used byReportHandlers to change the way differentDiagnostics are displayed. Defaults toSeverity::Error.
Traits§
- Diagnostic
- Adds rich metadata to your Error that can be used by
Reportto print really nice and human-friendly error messages. - Into
Diagnostic - Convenience trait that adds a
.into_diagnostic()method that converts a type implementingstd::error::Errorto aResult<T, Report>. - Source
Code - Represents readable source code of some sort.
- WrapErr
- Provides the
wrap_err()method forResult.
Type Aliases§
- Result
- type alias for
Result<T, Report>