pub(super) trait Tracker<'matcher> {
    fn before_match_loc(
        &mut self,
        parser: &TtParser,
        matcher: &'matcher MatcherLoc
    ); fn after_arm(
        &mut self,
        result: &ParseResult<FxHashMap<MacroRulesNormalizedIdent, NamedMatch>>
    ); fn description() -> &'static str; fn recovery() -> Recovery; }

Required Methods§

This is called before trying to match next MatcherLoc on the current token.

This is called after an arm has been parsed, either successfully or unsuccessfully. When this is called, before_match_loc was called at least once (with a MatcherLoc::Eof).

For tracing.

Implementors§