Modules§
- miette
- You run miette? You run her code like the software? Oh. Oh! Error code for coder! Error code for One Thousand Lines!
- reporting
- Rendering and error reporting implementation details.
- tracing
- A scoped, structured logging and diagnostics system.
Structs§
- Byte
Index - An index representing the offset in bytes from the start of a source file
- Byte
Offset - An offset in bytes relative to some ByteIndex
- Column
Index - A zero-indexed column number
- Default
Source Manager - File
Line Col - A FileLineCol represents traditional file/line/column information for use in rendering.
- Label
- Represents a diagnostic label.
- Labeled
Span - A labeled
SourceSpan. - Line
Index - A zero-indexed line number
- Location
- A Location represents file and span information for portability across source managers
- 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.
- Source
Content - Represents key information about a source file and its content:
- Source
File - A SourceFile represents a single file stored in a super::SourceManager
- Source
File Ref - A reference to a specific spanned region of a SourceFile, that provides access to the actual SourceFile, but scoped to the span it was created with.
- Source
Id - A SourceId represents the index/identifier associated with a unique source file in a SourceManager implementation.
- Source
Span - This represents a span of bytes in a Miden Assembly source file.
- Span
- This type is used to wrap any
Twith a SourceSpan, and is typically used when it is not convenient to add a SourceSpan to the type - most commonly because we don’t control the 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.
- Source
Manager - Source
Manager Ext - Spanned
- This trait should be implemented for any type that has an associated SourceSpan.
- WrapErr
- Provides the
wrap_err()method forResult.
Type Aliases§
- Result
- type alias for
Result<T, Report>