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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.