Skip to main content

ToDiagnostics

Trait ToDiagnostics 

Source
pub trait ToDiagnostics {
    // Required method
    fn to_diagnostics<F: Copy + PartialEq>(
        &self,
        file_id: F,
    ) -> Vec<Diagnostic<F>>;
}
Expand description

Convert an error type into codespan diagnostics.

Required Methods§

Source

fn to_diagnostics<F: Copy + PartialEq>(&self, file_id: F) -> Vec<Diagnostic<F>>

Convert this error value into diagnostics.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§