Enum rustc_resolve::macros::MacroRulesScope [−][src]
pub enum MacroRulesScope<'a> {
Empty,
Binding(&'a MacroRulesBinding<'a>),
Invocation(ExpnId),
}Expand description
The scope introduced by a macro_rules! macro.
This starts at the macro’s definition and ends at the end of the macro’s parent
module (named or unnamed), or even further if it escapes with #[macro_use].
Some macro invocations need to introduce macro_rules scopes too because they
can potentially expand into macro definitions.
Variants
Expand description
Empty “root” scope at the crate start containing no names.
Binding(&'a MacroRulesBinding<'a>)Expand description
The scope introduced by a macro_rules! macro definition.
Invocation(ExpnId)Expand description
The scope introduced by a macro invocation that can potentially
create a macro_rules! macro definition.
Trait Implementations
impl<'a> Clone for MacroRulesScope<'a>[src]
impl<'a> Clone for MacroRulesScope<'a>[src]fn clone(&self) -> MacroRulesScope<'a>[src]
fn clone(&self) -> MacroRulesScope<'a>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<'a> Debug for MacroRulesScope<'a>[src]
impl<'a> Debug for MacroRulesScope<'a>[src]impl<'a> Copy for MacroRulesScope<'a>[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for MacroRulesScope<'a>
impl<'a> !Send for MacroRulesScope<'a>
impl<'a> !Sync for MacroRulesScope<'a>
impl<'a> Unpin for MacroRulesScope<'a>
impl<'a> !UnwindSafe for MacroRulesScope<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more