pub trait TTMacroExpander {
    // Required method
    fn expand<'cx>(
        &self,
        ecx: &'cx mut ExtCtxt<'_>,
        span: Span,
        input: TokenStream
    ) -> Box<dyn MacResult + 'cx>;
}
Expand description

Represents a thing that maps token trees to Macro Results

Required Methods§

source

fn expand<'cx>( &self, ecx: &'cx mut ExtCtxt<'_>, span: Span, input: TokenStream ) -> Box<dyn MacResult + 'cx>

Implementors§

source§

impl TTMacroExpander for MacroRulesMacroExpander

source§

impl<F> TTMacroExpander for Fwhere F: for<'cx> Fn(&'cx mut ExtCtxt<'_>, Span, TokenStream) -> Box<dyn MacResult + 'cx>,