rustc_expand::base

Trait TTMacroExpander

Source
pub trait TTMacroExpander {
    // Required method
    fn expand<'cx>(
        &self,
        ecx: &'cx mut ExtCtxt<'_>,
        span: Span,
        input: TokenStream,
    ) -> MacroExpanderResult<'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, ) -> MacroExpanderResult<'cx>

Implementors§