pub trait DynRule: Debug + Spanned {
    // Required methods
    fn kind(&self) -> Check;
    fn apply_dyn<'input>(
        &self,
        context: &mut dyn Context<'input, '_>
    ) -> DiagResult<Matches<'input>>;
}

Required Methods§

source

fn kind(&self) -> Check

source

fn apply_dyn<'input>( &self, context: &mut dyn Context<'input, '_> ) -> DiagResult<Matches<'input>>

Trait Implementations§

source§

impl<'context> Rule for dyn DynRule + 'context

source§

fn kind(&self) -> Check

source§

fn apply<'input, 'ctx, C>(&self, context: &mut C) -> DiagResult<Matches<'input>>
where C: Context<'input, 'ctx> + ?Sized,

Implementors§

source§

impl<R> DynRule for R
where R: Rule + ?Sized,