Skip to main content

DiagnosticRule

Trait DiagnosticRule 

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

Source

fn name(&self) -> &str

Source

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

Implementors§