Type Alias macro_visit::RcMacro
source · pub type RcMacro<'a> = Rc<RefCell<dyn FnMut(TokenStream) + 'a>>;Expand description
Macro visitor.
Handle all macro calls, and call appropriate function.
on the way, it will find all use items, and add new imports to the list.
Creates new visitor for each function, to avoid mixed use items.
It uses lifetime to allow variable to be captured into closure.
Aliased Type§
struct RcMacro<'a> { /* private fields */ }