Modules§
Macros§
- bail
- Return early with an error.
- diagnostic
- Construct a
MietteDiagnosticin more user-friendly way.
Structs§
- ArcSource
- Label
- Labeled
Span - A labeled
SourceSpan. - Report
- Core Diagnostic wrapper type.
- Source
- Source
Offset - Newtype that represents the
ByteOffsetfrom the beginning of aSourceCode - Source
Span - Span within a
SourceCode - Span
- Represents the source span of an item of type [T]
Enums§
- File
Name - 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>. - Named
Source File - Source
Code - Represents readable source code of some sort.
- Source
File - Spanned
- WrapErr
- Provides the
wrap_err()method forResult.
Type Aliases§
- Byte
Offset - “Raw” type for the byte offset from the beginning of a
SourceCode. - Diag
- Diag
Result