Skip to main content

IntoMietteDiagnostic

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoMietteDiagnostic for CustomTripleCreateError

Source§

impl IntoMietteDiagnostic for Error

Source§

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

Source§

fn into_diagnostic(self) -> Self::IntoDiagnostic

Source§

impl IntoMietteDiagnostic for ExpressionParseError

Source§

impl IntoMietteDiagnostic for PlainStringParseError

Source§

impl IntoMietteDiagnostic for RustcVersionVerboseParseError

Source§

impl IntoMietteDiagnostic for TripleParseError

Implementors§