Struct cairo_lang_plugins::plugins::PanicablePlugin
source · #[non_exhaustive]pub struct PanicablePlugin;
Trait Implementations§
source§impl Debug for PanicablePlugin
impl Debug for PanicablePlugin
source§impl Default for PanicablePlugin
impl Default for PanicablePlugin
source§fn default() -> PanicablePlugin
fn default() -> PanicablePlugin
Returns the “default value” for a type. Read more
source§impl MacroPlugin for PanicablePlugin
impl MacroPlugin for PanicablePlugin
source§fn generate_code(
&self,
db: &dyn SyntaxGroup,
item_ast: ModuleItem
) -> PluginResult
fn generate_code( &self, db: &dyn SyntaxGroup, item_ast: ModuleItem ) -> 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.
source§fn declared_attributes(&self) -> Vec<String>
fn declared_attributes(&self) -> Vec<String>
Attributes this plugin uses.
Attributes the plugin uses without declaring here are likely to cause a compilation error
for unknown attribute.
Note: They may not cause a diagnostic if some other plugin declares such attribute, but
plugin writers should not rely on that.
Auto Trait Implementations§
impl RefUnwindSafe for PanicablePlugin
impl Send for PanicablePlugin
impl Sync for PanicablePlugin
impl Unpin for PanicablePlugin
impl UnwindSafe for PanicablePlugin
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