[][src]Trait syntax::ext::base::IdentMacroExpander

pub trait IdentMacroExpander {
    fn expand<'cx>(
        &self,
        cx: &'cx mut ExtCtxt,
        sp: Span,
        ident: Ident,
        token_tree: Vec<TokenTree>
    ) -> Box<dyn MacResult + 'cx>; }

Required methods

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

Loading content...

Implementors

impl<F> IdentMacroExpander for F where
    F: for<'cx> Fn(&'cx mut ExtCtxt, Span, Ident, Vec<TokenTree>) -> Box<dyn MacResult + 'cx>, 
[src]

Loading content...