Trait wasmer::HostFunction[][src]

pub trait HostFunction<Args, Rets, Kind, T> where
    Args: WasmTypeList,
    Rets: WasmTypeList,
    Kind: HostFunctionKind,
    T: Sized,
    Self: Sized
{ fn function_body_ptr(self) -> *const VMFunctionBody; }

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

fn function_body_ptr(self) -> *const VMFunctionBody[src]

Get the pointer to the function body.

Loading content...

Implementors

Loading content...