pub trait Plugin: Send + Sync {
// Required methods
fn init(&self);
fn extensions(&self) -> &[&'static str];
fn on_create(&self, input_path: &Path, output_path: &Path);
}Required Methods§
fn init(&self)
fn extensions(&self) -> &[&'static str]
fn on_create(&self, input_path: &Path, output_path: &Path)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".