AsLegacyInlineMacro

Trait AsLegacyInlineMacro 

Source
pub trait AsLegacyInlineMacro<'a> {
    type LegacyType;

    // Required method
    fn as_legacy_inline_macro(
        &self,
        db: &'a dyn Database,
    ) -> 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: &'a dyn Database, ) -> Option<Self::LegacyType>

Converts the inline macro to the legacy inline macro.

Implementations on Foreign Types§

Source§

impl<'a> AsLegacyInlineMacro<'a> for ExprInlineMacro<'a>

Source§

impl<'a> AsLegacyInlineMacro<'a> for ItemInlineMacro<'a>

Implementors§