Struct syntax::ext::base::BasicIdentMacroExpander[src]

pub struct BasicIdentMacroExpander {
    pub expander: IdentMacroExpanderFn,
    pub span: Option<Span>,
}

Fields

expander
span

Trait Implementations

impl IdentMacroExpander for BasicIdentMacroExpander

fn expand(&self, cx: &mut ExtCtxt, sp: Span, ident: Ident, token_tree: Vec<TokenTree>) -> Box<MacResult>