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

Method into_val

crates/debugger/src/host/api.rs:62–70  ·  view source on GitHub ↗
(self, store: impl wasmtime::AsContextMut)

Source from the content-addressed store, hash-verified

60 }
61
62 pub(crate) fn into_val(self, store: impl wasmtime::AsContextMut) -> Val {
63 match self {
64 WasmValue::Primitive(v) => v,
65 WasmValue::Exn(Some(owned)) => Val::ExnRef(Some(owned.to_rooted(store))),
66 WasmValue::Exn(None) => Val::ExnRef(None),
67 WasmValue::Func(Some(f)) => Val::FuncRef(Some(f)),
68 WasmValue::Func(None) => Val::FuncRef(None),
69 }
70 }
71}
72
73/// Representation of an async debug event that the debugger is

Callers 3

global_setMethod · 0.45
table_set_elementMethod · 0.45
exnref_newMethod · 0.45

Calls 3

FuncRefClass · 0.85
ExnRefClass · 0.50
to_rootedMethod · 0.45

Tested by

no test coverage detected