Struct cairo_lang_plugins::plugins::DerivePlugin
source · #[non_exhaustive]pub struct DerivePlugin;
Trait Implementations§
source§impl AsDynMacroPlugin for DerivePlugin
impl AsDynMacroPlugin for DerivePlugin
fn as_dyn_macro_plugin<'a>(self: Arc<Self>) -> Arc<dyn MacroPlugin + 'a>where Self: 'a,
source§impl Debug for DerivePlugin
impl Debug for DerivePlugin
source§impl Default for DerivePlugin
impl Default for DerivePlugin
source§fn default() -> DerivePlugin
fn default() -> DerivePlugin
Returns the “default value” for a type. Read more
source§impl MacroPlugin for DerivePlugin
impl MacroPlugin for DerivePlugin
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.
impl SemanticPlugin for DerivePlugin
Auto Trait Implementations§
impl RefUnwindSafe for DerivePlugin
impl Send for DerivePlugin
impl Sync for DerivePlugin
impl Unpin for DerivePlugin
impl UnwindSafe for DerivePlugin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more