Trait selene_lib::rules::Rule
source · [−]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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
fn severity(&self) -> Severity;
fn rule_type(&self) -> RuleType;
}