InlineMacroCall

Trait InlineMacroCall 

Source
pub trait InlineMacroCall<'db> {
    type PathNode: TypedSyntaxNode<'db>;
    type Result: PluginResultTrait<'db>;

    // Required methods
    fn arguments(&self, db: &'db dyn Database) -> WrappedArgList<'db>;
    fn path(&self, db: &'db dyn Database) -> Self::PathNode;
}
Expand description

Trait providing a consistent interface for inline macro calls.

Required Associated Types§

Required Methods§

Source

fn arguments(&self, db: &'db dyn Database) -> WrappedArgList<'db>

Source

fn path(&self, db: &'db dyn Database) -> Self::PathNode

Implementations on Foreign Types§

Source§

impl<'db> InlineMacroCall<'db> for LegacyExprInlineMacro<'db>

Source§

type PathNode = ExprPath<'db>

Source§

type Result = InlinePluginResult<'db>

Source§

fn arguments(&self, db: &'db dyn Database) -> WrappedArgList<'db>

Source§

fn path(&self, db: &'db dyn Database) -> ExprPath<'db>

Source§

impl<'db> InlineMacroCall<'db> for LegacyItemInlineMacro<'db>

Source§

type PathNode = ExprPath<'db>

Source§

type Result = PluginResult<'db>

Source§

fn arguments(&self, db: &'db dyn Database) -> WrappedArgList<'db>

Source§

fn path(&self, db: &'db dyn Database) -> ExprPath<'db>

Implementors§