logo
pub trait HostFunction<T, Args, Rets, Kind> where
    Args: WasmTypeList,
    Rets: WasmTypeList,
    Kind: HostFunctionKind, 
{ fn function_body_ptr() -> *const VMFunctionBody; fn call_trampoline_address() -> VMTrampoline; }
Expand description

The HostFunction trait represents the set of functions that can be used as host function. To uphold this statement, it is necessary for a function to be transformed into a pointer to VMFunctionBody.

Required Methods

Get the pointer to the function body.

Get the pointer to the function call trampoline.

Implementors