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§
Sourcefn has_relevant_ast_elements(
&self,
ctx: &LintContext<'_>,
ast: &MarkdownAst,
) -> bool
fn has_relevant_ast_elements( &self, ctx: &LintContext<'_>, ast: &MarkdownAst, ) -> bool
Check if the AST contains relevant elements for this rule