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

Method func_params

crates/debugger/src/host/opaque.rs:412–420  ·  view source on GitHub ↗
(&mut self, func: Func)

Source from the content-addressed store, hash-verified

410 }
411
412 async fn func_params(&mut self, func: Func) -> Result<Vec<wit::WasmType>> {
413 self.with_store(move |store| {
414 let ty = func.ty(&store);
415 ty.params()
416 .map(|ty| val_type_to_wasm_type(&ty))
417 .collect::<Result<Vec<_>>>()
418 })
419 .await?
420 }
421
422 async fn func_results(&mut self, func: Func) -> Result<Vec<wit::WasmType>> {
423 self.with_store(move |store| {

Callers 1

paramsMethod · 0.80

Calls 5

val_type_to_wasm_typeFunction · 0.85
with_storeMethod · 0.80
tyMethod · 0.45
mapMethod · 0.45
paramsMethod · 0.45

Tested by

no test coverage detected