pub trait ReportErrorExt {
    // Required methods
    fn diagnostic_message(&self) -> DiagnosticMessage;
    fn add_args<G: EmissionGuarantee>(
        self,
        handler: &Handler,
        builder: &mut DiagnosticBuilder<'_, G>
    );

    // Provided method
    fn debug(self) -> String
       where Self: Sized { ... }
}

Required Methods§

source

fn diagnostic_message(&self) -> DiagnosticMessage

Returns the diagnostic message for this error.

source

fn add_args<G: EmissionGuarantee>( self, handler: &Handler, builder: &mut DiagnosticBuilder<'_, G> )

Provided Methods§

source

fn debug(self) -> Stringwhere Self: Sized,

Implementors§