pub trait ExportFunction<Handler, Parameters, Results> {
    // Required method
    fn export(
        &mut self,
        module_name: &str,
        function_name: &str,
        handler: Handler,
    ) -> Result<(), RuntimeError>;
}Expand description
A type that accepts registering a host function as an export for a guest Wasm instance.
The Handler represents the closure type required for the host function, and Parameters and
Results are the input and output types of the closure, respectively.