pub trait BackendDiagnostic {
// Required method
fn diagnostic_metadata(&self) -> BackendDiagnosticMetadata;
}Expand description
Supplies stable presentation metadata for a concrete backend error.
Implement this for the backend’s public top-level error and for nested error types when callers may receive them directly. The implementation is responsible for preserving the backend-specific typed error; this trait is only an adapter-facing classification layer.
Required Methods§
Sourcefn diagnostic_metadata(&self) -> BackendDiagnosticMetadata
fn diagnostic_metadata(&self) -> BackendDiagnosticMetadata
Classifies this error without replacing or flattening the typed error.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".