pub trait IntoMietteDiagnostic {
type IntoDiagnostic;
// Required method
fn into_diagnostic(self) -> Self::IntoDiagnostic;
}
Expand description
Extension trait that converts errors into a miette::Diagnostic
.
Required Associated Types§
Sourcetype IntoDiagnostic
type IntoDiagnostic
The Diagnostic
type that self
will be converted to.
Required Methods§
Sourcefn into_diagnostic(self) -> Self::IntoDiagnostic
fn into_diagnostic(self) -> Self::IntoDiagnostic
Converts the underlying error into Self::IntoDiagnostic
.
This can be used to pretty-print errors returned by target-spec.