Trait svlint::linter::TextRule

source ·
pub trait TextRule: Sync + Send {
    // Required methods
    fn check(
        &mut self,
        event: TextRuleEvent<'_>,
        config: &ConfigOption
    ) -> TextRuleResult;
    fn name(&self) -> String;
    fn hint(&self, config: &ConfigOption) -> String;
    fn reason(&self) -> String;

    // Provided method
    fn into_rule(self) -> Rule
       where Self: Sized + 'static { ... }
}

Required Methods§

source

fn check( &mut self, event: TextRuleEvent<'_>, config: &ConfigOption ) -> TextRuleResult

source

fn name(&self) -> String

source

fn hint(&self, config: &ConfigOption) -> String

source

fn reason(&self) -> String

Provided Methods§

source

fn into_rule(self) -> Rule
where Self: Sized + 'static,

Implementors§