[−][src]Enum rustc_expand::mbe::macro_check::NestedMacroState

pub(in mbe::macro_check) enum NestedMacroState {
    Empty,
    MacroRules,
    MacroRulesNot,
    MacroRulesNotName,
    Macro,
    MacroName,
    MacroNameParen,
}

Represents the processed prefix of a nested macro.

Variants

Empty

Nothing that matches a nested macro definition was processed yet.

MacroRules

The token macro_rules was processed.

MacroRulesNot

The tokens macro_rules! were processed.

MacroRulesNotName

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).

Macro

The keyword macro was processed.

MacroName

The keyword macro followed by a name was processed.

MacroNameParen

The keyword macro followed by a name and a token delimited by parentheses was processed.

Trait Implementations

impl Clone for NestedMacroState[src]

impl Copy for NestedMacroState[src]

impl Eq for NestedMacroState[src]

impl PartialEq<NestedMacroState> 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> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.