Trait miette::DiagnosticReporter[][src]

pub trait DiagnosticReporter: Any + Send + Sync {
    fn debug(
        &self,
        diagnostic: &dyn Diagnostic,
        f: &mut Formatter<'_>
    ) -> Result; fn display(
        &self,
        diagnostic: &dyn Diagnostic,
        f: &mut Formatter<'_>
    ) -> Result { ... } }
Expand description

Protocol for Diagnostic handlers, which are responsible for actually printing out Diagnostics.

Blatantly based on EyreHandler (thanks, Jane!)

Required methods

Define the report format.

Provided methods

Override for the Display format.

Implementors