wasmedge_sys::instance::function

Trait AsFunc

Source
pub trait AsFunc {
    // Required method
    unsafe fn get_func_raw(&self) -> *mut WasmEdge_FunctionInstanceContext;

    // Provided method
    fn ty(&self) -> Option<FuncType>
       where Self: Sized { ... }
}

Required Methods§

Source

unsafe fn get_func_raw(&self) -> *mut WasmEdge_FunctionInstanceContext

§Safety

The lifetime of the returned pointer must not exceed that of the object itself.

Provided Methods§

Source

fn ty(&self) -> Option<FuncType>
where Self: Sized,

Implementors§