Macro openrr_plugin::export_plugin [−][src]
macro_rules! export_plugin { ($plugin_constructor:expr $(,)?) => { ... }; }
Expand description
Exports the plugin that will instantiated with the specified expression.
Examples
use openrr_plugin::Plugin; openrr_plugin::export_plugin!(MyPlugin); pub struct MyPlugin; impl Plugin for MyPlugin { fn name(&self) -> String { "MyPlugin".into() } }