pub trait TTMacroExpander {
    // Required method
    fn expand<'cx>(
        &self,
        ecx: &'cx mut ExtCtxt<'_>,
        span: Span,
        input: TokenStream,
    ) -> MacroExpanderResult<'cx>;
    // Provided method
    fn get_unused_rule(&self, _rule_i: usize) -> Option<(&Ident, Span)> { ... }
}Expand description
Represents a thing that maps token trees to Macro Results