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§
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.