Get access to a table within this instance's table index space. This permits accessing tables whether they are exported or not. However, it is only available for purposes of debugging, and so is only permitted when `guest_debug` is enabled in the Engine's configuration. The intent of the Wasmtime API is to enforce the Wasm type system's encapsulation even in the host API, except where necessary f
(
&self,
mut store: impl AsContextMut,
table_index: u32,
)
| 274 | /// `None` is returned if guest-debugging is not enabled in the |
| 275 | /// engine configuration for this Store. |
| 276 | pub fn debug_table( |
| 277 | &self, |
| 278 | mut store: impl AsContextMut, |
| 279 | table_index: u32, |
| 280 | ) -> Option<crate::Table> { |
| 281 | self.debug_export( |
| 282 | store.as_context_mut().0, |
| 283 | TableIndex::from_bits(table_index).into(), |
| 284 | ) |
| 285 | .and_then(|s| s.into_table()) |
| 286 | } |
| 287 | |
| 288 | /// Get access to a function within this instance's function index |
| 289 | /// space. |
no test coverage detected