pub trait Plugin<T: ?Sized>: Default {
// Required method
fn apply_to(&self, target: &mut T) -> ProjectResult;
// Provided method
fn plugin_id(&self) -> &str { ... }
}Expand description
A plugin to apply to the project. All plugins must implement default.
Required Methods§
Sourcefn apply_to(&self, target: &mut T) -> ProjectResult
fn apply_to(&self, target: &mut T) -> ProjectResult
Apply the plugin
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".