Trait 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 CustomTripleCreateError

Source§

impl IntoMietteDiagnostic for Error

Source§

type IntoDiagnostic = Box<dyn Diagnostic + Send + Sync>

Source§

fn into_diagnostic(self) -> Self::IntoDiagnostic

Source§

impl IntoMietteDiagnostic for ExpressionParseError

Source§

impl IntoMietteDiagnostic for PlainStringParseError

Source§

impl IntoMietteDiagnostic for TripleParseError

Implementors§