AsLegacyInlineMacro

Trait AsLegacyInlineMacro 

Source
pub trait AsLegacyInlineMacro {
    type LegacyType;

    // Required method
    fn as_legacy_inline_macro(
        &self,
        db: &dyn SyntaxGroup,
    ) -> Option<Self::LegacyType>;
}
Expand description

Trait for converting inline macros with token tree syntax as the argument to legacy inline which must have a wrapped argument list syntax node.

Required Associated Types§

Source

type LegacyType

The corresponding legacy inline macro type.

Required Methods§

Source

fn as_legacy_inline_macro( &self, db: &dyn SyntaxGroup, ) -> Option<Self::LegacyType>

Converts the inline macro to the legacy inline macro.

Implementations on Foreign Types§

Source§

impl AsLegacyInlineMacro for ExprInlineMacro

Source§

impl AsLegacyInlineMacro for ItemInlineMacro

Implementors§