Skip to main content

DynLintStore

Trait DynLintStore 

Source
pub trait DynLintStore:
    Any
    + DynSync
    + DynSend {
    // Required methods
    fn lint_groups_iter(&self) -> Box<dyn Iterator<Item = LintGroup> + '_>;
    fn check_attribute_lint_name(
        &self,
        lint_name: LintName,
        lint_tools: &RegisteredTools,
    ) -> CheckLintNameResult<'_>;
}

Required Methods§

Source

fn lint_groups_iter(&self) -> Box<dyn Iterator<Item = LintGroup> + '_>

Provides a way to access lint groups without depending on rustc_lint

Source

fn check_attribute_lint_name( &self, lint_name: LintName, lint_tools: &RegisteredTools, ) -> CheckLintNameResult<'_>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§