Trait target_spec_miette::IntoMietteDiagnostic

source ·
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§

source

type IntoDiagnostic

The Diagnostic type that self will be converted to.

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl IntoMietteDiagnostic for Error

source§

impl IntoMietteDiagnostic for ExpressionParseError

source§

impl IntoMietteDiagnostic for PlainStringParseError

source§

impl IntoMietteDiagnostic for TripleParseError

Implementors§