Struct cairo_lang_plugins::plugins::ConfigPlugin
source · #[non_exhaustive]pub struct ConfigPlugin;
Expand description
Plugin that enables ignoring modules not involved in the current config. Mostly useful for marking test modules to prevent usage of their functionality out of tests, and reduce compilation time when the tests data isn’t required.
Trait Implementations§
source§impl AsDynMacroPlugin for ConfigPlugin
impl AsDynMacroPlugin for ConfigPlugin
fn as_dyn_macro_plugin<'a>(self: Arc<Self>) -> Arc<dyn MacroPlugin + 'a>where Self: 'a,
source§impl Debug for ConfigPlugin
impl Debug for ConfigPlugin
source§impl Default for ConfigPlugin
impl Default for ConfigPlugin
source§fn default() -> ConfigPlugin
fn default() -> ConfigPlugin
Returns the “default value” for a type. Read more
source§impl MacroPlugin for ConfigPlugin
impl MacroPlugin for ConfigPlugin
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 ConfigPlugin
Auto Trait Implementations§
impl RefUnwindSafe for ConfigPlugin
impl Send for ConfigPlugin
impl Sync for ConfigPlugin
impl Unpin for ConfigPlugin
impl UnwindSafe for ConfigPlugin
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