Enum rustc_expand::mbe::macro_check::NestedMacroState [−][src]
enum NestedMacroState {
Empty,
MacroRules,
MacroRulesNot,
MacroRulesNotName,
Macro,
MacroName,
MacroNameParen,
}Expand description
Represents the processed prefix of a nested macro.
Variants
Expand description
Nothing that matches a nested macro definition was processed yet.
Expand description
The token macro_rules was processed.
Expand description
The tokens macro_rules! were processed.
Expand description
The tokens macro_rules! followed by a name were processed. The name may be either directly
an identifier or a meta-variable (that hopefully would be instantiated by an identifier).
Expand description
The keyword macro was processed.
Expand description
The keyword macro followed by a name was processed.
Expand description
The keyword macro followed by a name and a token delimited by parentheses was processed.
Trait Implementations
impl Clone for NestedMacroState[src]
impl Clone for NestedMacroState[src]fn clone(&self) -> NestedMacroState[src]
fn clone(&self) -> NestedMacroState[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 PartialEq<NestedMacroState> for NestedMacroState[src]
impl PartialEq<NestedMacroState> for NestedMacroState[src]impl Copy for NestedMacroState[src]
impl Eq for NestedMacroState[src]
impl StructuralEq for NestedMacroState[src]
impl StructuralPartialEq for NestedMacroState[src]
Auto Trait Implementations
impl RefUnwindSafe for NestedMacroState
impl Send for NestedMacroState
impl Sync for NestedMacroState
impl Unpin for NestedMacroState
impl UnwindSafe for NestedMacroState
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