pub trait ProcMacroExpander: Debug + Send + Sync + RefUnwindSafe {
    // Required method
    fn expand(
        &self,
        subtree: &Subtree,
        attrs: Option<&Subtree>,
        env: &Env,
        def_site: Span,
        call_site: Span,
        mixed_site: Span
    ) -> Result<Subtree, ProcMacroExpansionError>;
}

Required Methods§

source

fn expand( &self, subtree: &Subtree, attrs: Option<&Subtree>, env: &Env, def_site: Span, call_site: Span, mixed_site: Span ) -> Result<Subtree, ProcMacroExpansionError>

Implementors§