(&self, table: TableIndex)
| 361 | /// index is an imported table. |
| 362 | #[inline] |
| 363 | pub fn defined_table_index(&self, table: TableIndex) -> Option<DefinedTableIndex> { |
| 364 | if table.index() < self.num_imported_tables { |
| 365 | None |
| 366 | } else { |
| 367 | Some(DefinedTableIndex::new( |
| 368 | table.index() - self.num_imported_tables, |
| 369 | )) |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | /// Test whether the given table index is for an exported table. |
| 374 | #[inline] |
no test coverage detected