Skip to main content

export_plugin

Macro export_plugin 

Source
macro_rules! export_plugin {
    (@out_descs $($out:ty),*) => { ... };
    (@renderer_fns $($out:ty),+) => { ... };
    (
        module: $module_name:ident,
        renderers: [$($out:ty),+ $(,)?] $(,)?
    ) => { ... };
}
Expand description

Export a renderer plugin pack.

Generates:

  • _binoc_plugin_describe
  • _binoc_free_string
  • _binoc_renderer_render
  • an empty #[pymodule] when the python feature is active

§Example

export_plugin! {
    module: my_plugin,
    renderers: [MyRenderer],
}