Trait DynRule

Source
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,