Trait selene_lib::rules::Rule[][src]

pub trait Rule {
    type Config: DeserializeOwned;
    type Error: Error;
    fn new(config: Self::Config) -> Result<Self, Self::Error>
    where
        Self: Sized
;
fn pass(&self, ast: &Ast, context: &Context) -> Vec<Diagnostic>;
fn severity(&self) -> Severity;
fn rule_type(&self) -> RuleType; }

Associated Types

Required methods

Implementors