Get the [`LocalSlot`] for a WebAssembly local. This method assumes that the index is bound to u32::MAX, representing the index space for WebAssembly locals. # Panics This method panics if the index is not associated to a valid WebAssembly local.
(&self, index: u32)
| 258 | /// This method panics if the index is not associated to a valid WebAssembly |
| 259 | /// local. |
| 260 | pub fn get_wasm_local(&self, index: u32) -> &LocalSlot { |
| 261 | self.wasm_locals |
| 262 | .get(index as usize) |
| 263 | .unwrap_or_else(|| panic!(" Expected WebAssembly local at slot: {index}")) |
| 264 | } |
| 265 | |
| 266 | /// Get the [`LocalSlot`] for a special local. |
| 267 | /// |
no test coverage detected