MacroFunction

Trait MacroFunction 

Source
pub trait MacroFunction {
    // Required methods
    fn get_name(&self) -> Symbol;
    fn get_type(&self) -> TypeNodeId;
    fn get_fn(&self) -> MacroFunType;
}

Required Methods§

Source

fn get_name(&self) -> Symbol

Source

fn get_type(&self) -> TypeNodeId

Source

fn get_fn(&self) -> MacroFunType

Main macro function. If you need to receive 2 or more arguments, you need to pass struct or tuple as the argument instead.

Implementors§