Trait DynMatcher

Source
pub trait DynMatcher: DynMatcherMut {
    // Required method
    fn try_match_dyn<'input>(
        &self,
        input: Input<'input>,
        context: &dyn Context<'input, '_>,
    ) -> DiagResult<MatchResult<'input>>;
}

Required Methods§

Source

fn try_match_dyn<'input>( &self, input: Input<'input>, context: &dyn Context<'input, '_>, ) -> DiagResult<MatchResult<'input>>

Trait Implementations§

Source§

impl<'a> MatcherMut for Box<dyn DynMatcher + 'a>

Source§

fn try_match_mut<'input, 'context, C>( &self, input: Input<'input>, context: &mut C, ) -> DiagResult<MatchResult<'input>>
where C: Context<'input, 'context> + ?Sized,

Search for a match in the given input buffer Read more
Source§

impl<'a> MatcherMut for dyn DynMatcher + 'a

Source§

fn try_match_mut<'input, 'context, C>( &self, input: Input<'input>, context: &mut C, ) -> DiagResult<MatchResult<'input>>
where C: Context<'input, 'context> + ?Sized,

Search for a match in the given input buffer Read more

Implementors§

Source§

impl<M> DynMatcher for M
where M: Matcher,