Skip to main content

Plugin

Trait Plugin 

Source
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§

Source

fn meta(&self) -> &'static PluginMeta

Returns the metadata for this plugin.

Source

fn register(&self, registry: &mut PluginRegistry)

Registers all providers and hooks from this plugin into the registry.

Implementors§