pub trait SemanticCheck: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn run(&self, ctx: &CheckContext) -> Vec<Finding>;
}Expand description
Trait that every semantic check must implement.
Checks are stateless: all mutable context is supplied via CheckContext.
Required Methods§
Sourcefn run(&self, ctx: &CheckContext) -> Vec<Finding>
fn run(&self, ctx: &CheckContext) -> Vec<Finding>
Execute the check against the provided context and return any findings.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".