Trait PluginAware

Source
pub trait PluginAware: Sized {
    // Required methods
    fn plugin_manager(&self) -> &PluginManager<Self>;
    fn plugin_manager_mut(&mut self) -> &mut PluginManager<Self>;

    // Provided method
    fn apply_plugin<P: Plugin<Self>>(&mut self) -> ProjectResult { ... }
}
Expand description

Some value that can have plugins applied to it.

Required Methods§

Source

fn plugin_manager(&self) -> &PluginManager<Self>

Gets a reference to the plugin manager for this value.

Source

fn plugin_manager_mut(&mut self) -> &mut PluginManager<Self>

Gets a mutable reference to the plugin manager for this value.

Provided Methods§

Source

fn apply_plugin<P: Plugin<Self>>(&mut self) -> ProjectResult

Apply a plugin to this.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§