Trait litcheck_filecheck::rules::Rule
source · pub trait Rule: Debug + Spanned {
// Required methods
fn kind(&self) -> Check;
fn apply<'input, 'context, C>(
&self,
context: &mut C
) -> DiagResult<Matches<'input>>
where C: Context<'input, 'context> + ?Sized;
}
Required Methods§
fn kind(&self) -> Check
fn apply<'input, 'context, C>(
&self,
context: &mut C
) -> DiagResult<Matches<'input>>where
C: Context<'input, 'context> + ?Sized,
Object Safety§
This trait is not object safe.