Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
pub(crate) fn ref_to_val(r: &wasm_ref_t) -> Val {
35
Val::from(r.r.clone())
36
}
37
38
#[unsafe(no_mangle)]
39
pub extern
"C"
fn wasm_ref_copy(r: Option<&wasm_ref_t>) -> Option<Box<wasm_ref_t>> {
Callers
1
val
Method · 0.85
Calls
2
from
Function · 0.85
clone
Method · 0.45
Tested by
no test coverage detected