(&mut self, func: Func)
| 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| { |
no test coverage detected