pub trait Plugin: Send + Sync {
// Required methods
fn meta(&self) -> &'static PluginMeta;
fn register(&self, registry: &mut PluginRegistry);
}Expand description
Trait for analyzer plugins that provide type inference and analysis hooks.
Required Methods§
Sourcefn meta(&self) -> &'static PluginMeta
fn meta(&self) -> &'static PluginMeta
Returns the metadata for this plugin.
Sourcefn register(&self, registry: &mut PluginRegistry)
fn register(&self, registry: &mut PluginRegistry)
Registers all providers and hooks from this plugin into the registry.