pub trait DocRule {
// Required methods
fn id(&self) -> &str;
fn run(&self, tree: &DocTree, ctx: &Ctx<'_>) -> Vec<Finding>;
}Expand description
A doc-scoped named rule, run once over the whole projected tree.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".