pub trait ReportErrorExt {
// Required methods
fn diagnostic_message(&self) -> DiagMessage;
fn add_args<G: EmissionGuarantee>(self, diag: &mut Diag<'_, G>);
// Provided method
fn debug(self) -> String
where Self: Sized { ... }
}
Required Methods§
sourcefn diagnostic_message(&self) -> DiagMessage
fn diagnostic_message(&self) -> DiagMessage
Returns the diagnostic message for this error.
fn add_args<G: EmissionGuarantee>(self, diag: &mut Diag<'_, G>)
Provided Methods§
Object Safety§
This trait is not object safe.