pub trait Rule {
// Required methods
fn id(&self) -> &str;
fn run(&self, node: &SectionNode, ctx: &Ctx<'_>) -> Vec<Finding>;
}Expand description
A node-scoped named rule, run against each declared, present section that carries it.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".