wasmedge_sys::ffi

Type Alias WasmEdge_HostFunc_t

Source
pub type WasmEdge_HostFunc_t = Option<unsafe extern "C" fn(Data: *mut c_void, CallFrameCxt: *const WasmEdge_CallingFrameContext, Params: *const WasmEdge_Value, Returns: *mut WasmEdge_Value) -> WasmEdge_Result>;

Aliased Type§

enum WasmEdge_HostFunc_t {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *const WasmEdge_CallingFrameContext, _: *const WasmEdge_Value, _: *mut WasmEdge_Value) -> WasmEdge_Result),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *const WasmEdge_CallingFrameContext, _: *const WasmEdge_Value, _: *mut WasmEdge_Value) -> WasmEdge_Result)

Some value of type T.