wasmtime_c_api

Function wasm_extern_copy

Source
#[no_mangle]
pub extern "C" fn wasm_extern_copy(
    src: &wasm_extern_t,
) -> Box<wasm_extern_t>
Expand description

Creates a new wasm_extern_t which matches the provided one.

The caller is responsible for deleting the returned value via wasm_extern_delete.