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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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