Struct cairo_lang_starknet::plugin::StarkNetPlugin
source · pub struct StarkNetPlugin {}
Trait Implementations§
source§impl AsDynMacroPlugin for StarkNetPlugin
impl AsDynMacroPlugin for StarkNetPlugin
fn as_dyn_macro_plugin<'a>(self: Arc<Self>) -> Arc<dyn MacroPlugin + 'a>where Self: 'a,
source§impl Debug for StarkNetPlugin
impl Debug for StarkNetPlugin
source§impl MacroPlugin for StarkNetPlugin
impl MacroPlugin for StarkNetPlugin
source§fn generate_code(&self, db: &dyn SyntaxGroup, item_ast: Item) -> PluginResult
fn generate_code(&self, db: &dyn SyntaxGroup, item_ast: Item) -> PluginResult
Generates code for an item. If no code should be generated returns None.
Otherwise, returns (virtual_module_name, module_content), and a virtual submodule
with that name and content should be created.