Crate pluginop_macro

Source
Expand description

A set of attribute macros, to be used in the source code of the host implementation, to ease the process of making it pluginizable, e.g., by transforming a regular Rust function into a plugin operation.

Attribute Macrosยง

pluginop
An attribute macro to transform a non-faillible function into a non-parametrized plugin operation.
pluginop_param
An attribute macro to transform a non-faillible function into a parametrized plugin operation. One of the arguments of the function must act as the parameter of the plugin operation.
pluginop_result
An attribute macro to transform a function returning a Result into a non-parametrized plugin operation.
pluginop_result_param
An attribute macro to transform a function returning a Result into a parametrized plugin operation. One of the arguments of the function must act as the parameter of the plugin operation.