Modules§
Macros§
- bail
- Return early with an error.
- diagnostic
- Construct a
MietteDiagnostic
in more user-friendly way.
Structs§
- ArcSource
- Label
- Labeled
Span - A labeled
SourceSpan
. - Report
- Core Diagnostic wrapper type.
- Source
- Source
Offset - Newtype that represents the
ByteOffset
from 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
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>
. - 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