MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / ref_to_val

Function ref_to_val

crates/c-api/src/ref.rs:34–36  ·  view source on GitHub ↗
(r: &wasm_ref_t)

Source from the content-addressed store, hash-verified

32}
33
34pub(crate) fn ref_to_val(r: &wasm_ref_t) -> Val {
35 Val::from(r.r.clone())
36}
37
38#[unsafe(no_mangle)]
39pub extern "C" fn wasm_ref_copy(r: Option<&wasm_ref_t>) -> Option<Box<wasm_ref_t>> {

Callers 1

valMethod · 0.85

Calls 2

fromFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected