AstExtensions

Trait AstExtensions 

Source
pub trait AstExtensions {
    // Required method
    fn has_relevant_ast_elements(
        &self,
        ctx: &LintContext<'_>,
        ast: &MarkdownAst,
    ) -> bool;
}
Expand description

Extension trait for rules that use AST

Required Methods§

Source

fn has_relevant_ast_elements( &self, ctx: &LintContext<'_>, ast: &MarkdownAst, ) -> bool

Check if the AST contains relevant elements for this rule

Implementors§