Struct rustc_resolve::macros::MacroRulesBinding
source · pub struct MacroRulesBinding<'a> {
pub(crate) binding: &'a NameBinding<'a>,
pub(crate) parent_macro_rules_scope: Interned<'a, Cell<MacroRulesScope<'a>>>,
pub(crate) ident: Ident,
}
Expand description
Binding produced by a macro_rules
item.
Not modularized, can shadow previous macro_rules
bindings, etc.
Fields§
§binding: &'a NameBinding<'a>
§parent_macro_rules_scope: Interned<'a, Cell<MacroRulesScope<'a>>>
macro_rules
scope into which the macro_rules
item was planted.
ident: Ident
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MacroRulesBinding<'a>
impl<'a> !Send for MacroRulesBinding<'a>
impl<'a> !Sync for MacroRulesBinding<'a>
impl<'a> Unpin for MacroRulesBinding<'a>
impl<'a> !UnwindSafe for MacroRulesBinding<'a>
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes