Skip to main content

mf_plugin_with_config

Macro mf_plugin_with_config 

Source
macro_rules! mf_plugin_with_config {
    (
        $name:ident,
        config = { $( $config_field:ident : $config_type:ty ),+ $(,)? },
        init_fn = $init_fn:expr
        $(, docs = $docs:expr )?
        $(,)?
    ) => { ... };
}
Expand description

带配置支持的可配置插件宏