pub fn kind(&self) -> MacroKind {
        match *self {
            SyntaxExtension::DeclMacro { .. } |
            SyntaxExtension::NormalTT { .. } |
            SyntaxExtension::IdentTT(..) |
            SyntaxExtension::ProcMacro { .. } =>
                MacroKind::Bang,
            SyntaxExtension::NonMacroAttr { .. } |
            SyntaxExtension::MultiDecorator(..) |
            SyntaxExtension::MultiModifier(..) |
            SyntaxExtension::AttrProcMacro(..) =>
                MacroKind::Attr,
            SyntaxExtension::ProcMacroDerive(..) |
            SyntaxExtension::BuiltinDerive(..) =>
                MacroKind::Derive,
        }
    }
/// Return which kind of macro calls this syntax extension.
Return which kind of macro calls this syntax extension.
Return which kind of macro calls this syntax extension .
pub fn kind(&self) -> MacroKind {
        match *self {
            SyntaxExtension::DeclMacro { .. } |
            SyntaxExtension::NormalTT { .. } |
            SyntaxExtension::IdentTT(..) |
            SyntaxExtension::ProcMacro { .. } =>
                MacroKind::Bang,
            SyntaxExtension::NonMacroAttr { .. } |
            SyntaxExtension::MultiDecorator(..) |
            SyntaxExtension::MultiModifier(..) |
            SyntaxExtension::AttrProcMacro(..) =>
                MacroKind::Attr,
            SyntaxExtension::ProcMacroDerive(..) |
            SyntaxExtension::BuiltinDerive(..) =>
                MacroKind::Derive,
        }
    }
pub fn kind ( & self ) -> MacroKind { match * self { SyntaxExtension :: DeclMacro { .. } | SyntaxExtension :: NormalTT { .. } | SyntaxExtension :: IdentTT ( .. ) | SyntaxExtension :: ProcMacro { .. } => MacroKind :: Bang , SyntaxExtension :: NonMacroAttr { .. } | SyntaxExtension :: MultiDecorator ( .. ) | SyntaxExtension :: MultiModifier ( .. ) | SyntaxExtension :: AttrProcMacro ( .. ) => MacroKind :: Attr , SyntaxExtension :: ProcMacroDerive ( .. ) | SyntaxExtension :: BuiltinDerive ( .. ) => MacroKind :: Derive , } }
Return which kind of macro calls this syntax extension.
Return which kind of macro calls this syntax extension .
&self
&self