Crate miden_utils_diagnostics

Source

Re-exports§

pub use miette;
pub use tracing;

Modules§

reporting
Rendering and error reporting implementation details.

Macros§

diagnostic
report

Structs§

Label
Represents a diagnostic label.
LabeledSpan
A labeled SourceSpan.
NamedSource
Utility struct for when you have a regular SourceCode type that doesn’t implement name. For example String. Or if you want to override the name returned by the SourceCode.
RelatedError
This type allows rolling up a diagnostic into a parent error
RelatedLabel
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 by ReportHandlers to change the way different Diagnostics are displayed. Defaults to Severity::Error.

Traits§

Diagnostic
Adds rich metadata to your Error that can be used by Report to print really nice and human-friendly error messages.
IntoDiagnostic
Convenience trait that adds a .into_diagnostic() method that converts a type implementing std::error::Error to a Result<T, Report>.
SourceCode
Represents readable source code of some sort.
WrapErr
Provides the wrap_err() method for Result.

Type Aliases§

Result
type alias for Result<T, Report>

Derive Macros§

Diagnostic