pub trait DiagnosticRule: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn check(&self, ctx: &DiagContext<'_>) -> Vec<Diagnostic>;
}Expand description
A diagnostic rule that checks for specific issues.
Required Methods§
fn name(&self) -> &str
fn check(&self, ctx: &DiagContext<'_>) -> Vec<Diagnostic>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".