Struct rustc_hir::hir::MacroDef [−][src]
pub struct MacroDef<'hir> {
pub ident: Ident,
pub vis: Visibility<'hir>,
pub def_id: LocalDefId,
pub span: Span,
pub ast: MacroDef,
}Expand description
A macro definition, in this crate or imported from another.
Not parsed directly, but created on macro import or macro_rules! expansion.
Fields
ident: Identvis: Visibility<'hir>def_id: LocalDefIdspan: Spanast: MacroDefImplementations
Trait Implementations
impl<HirCtx: HashStableContext> HashStable<HirCtx> for MacroDef<'_>[src]
impl<HirCtx: HashStableContext> HashStable<HirCtx> for MacroDef<'_>[src]