Get the `i`th parameter type. Returns `None` if `i` is out of bounds.
(&self, i: usize)
| 2551 | /// |
| 2552 | /// Returns `None` if `i` is out of bounds. |
| 2553 | pub fn param(&self, i: usize) -> Option<ValType> { |
| 2554 | let engine = self.engine(); |
| 2555 | self.registered_type |
| 2556 | .unwrap_func() |
| 2557 | .params() |
| 2558 | .get(i) |
| 2559 | .map(|ty| ValType::from_wasm_type(engine, ty)) |
| 2560 | } |
| 2561 | |
| 2562 | /// Returns the list of parameter types for this function. |
| 2563 | #[inline] |
nothing calls this directly
no test coverage detected