Get the `i`th result type. Returns `None` if `i` is out of bounds.
(&self, i: usize)
| 2574 | /// |
| 2575 | /// Returns `None` if `i` is out of bounds. |
| 2576 | pub fn result(&self, i: usize) -> Option<ValType> { |
| 2577 | let engine = self.engine(); |
| 2578 | self.registered_type |
| 2579 | .unwrap_func() |
| 2580 | .results() |
| 2581 | .get(i) |
| 2582 | .map(|ty| ValType::from_wasm_type(engine, ty)) |
| 2583 | } |
| 2584 | |
| 2585 | /// Returns the list of result types for this function. |
| 2586 | #[inline] |
no test coverage detected