pub trait MacroFunction {
// Required methods
fn get_name(&self) -> Symbol;
fn get_type(&self) -> TypeNodeId;
fn get_fn(&self) -> MacroFunType;
}
Required Methods§
fn get_name(&self) -> Symbol
fn get_type(&self) -> TypeNodeId
Sourcefn get_fn(&self) -> MacroFunType
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.