Attribute Macro fp_bindgen_support::fp_export_impl
source · #[fp_export_impl]
Expand description
Exports an implementation of a specific provider function
Example usage of implementing a log
function of a logger
provider:
use fp_bindgen_macros::fp_export_impl; //this would be `logger::fp_export_impl` inside the plugin crate
#[fp_export_impl(logger)]
pub fn log(msg: String, foo: String) -> String {
format!("{} + {} => {0}{1}", msg, foo)
}