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
SourceCode
type that doesn’t implementname
. For exampleString
. Or if you want to override thename
returned 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
Diagnostic
severity. Intended to be used byReportHandler
s to change the way differentDiagnostic
s are displayed. Defaults toSeverity::Error
.
Traits§
- Diagnostic
- Adds rich metadata to your Error that can be used by
Report
to print really nice and human-friendly error messages. - Into
Diagnostic - Convenience trait that adds a
.into_diagnostic()
method that converts a type implementingstd::error::Error
to 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>