Trait marine_wasm_backend_traits::function::IntoFunc
source · pub trait IntoFunc<WB: WasmBackend, Params, Results, Env> {
// Required method
fn into_func(
self,
ctx: &mut impl AsContextMut<WB>
) -> <WB as WasmBackend>::HostFunction;
}
Expand description
A helper trait for creating a function with a static signature. Should not be implemented by users. Implemented for all functions that meet the following criteria: * implement Send + Sync + ’static * take or not take ImportCallContext as first parameter * take from 0 to 16 i32 parameters * return () or i32
Required Methods§
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
Object Safety§
This trait is not object safe.