Macro plugin_builder

Source
macro_rules! plugin_builder {
    ($name:ident, $builder_name:ident, $build_fn:expr) => { ... };
    ($name:ident, $builder_name:ident) => { ... };
}
Expand description

Derives a plugin builder

A closure can be passed as third argument. This closure receives a Config object and must return an instance of plugin.

By default (if no closure was provided), the plugin is created using the Plugin::default() function.

Note: the plugin builder may create plugins of different types