Get a table export by name.
(&self, name: &str)
| 545 | |
| 546 | /// Get a table export by name. |
| 547 | pub fn table(&self, name: &str) -> Result<Table> { |
| 548 | match self.require_export(name)? { |
| 549 | ExternVal::Table(table_addr) => Ok(Table::from_store_addr(self.0.store_id, table_addr)), |
| 550 | _ => Err(Error::Other(format!("Export is not a table: {name}"))), |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | /// Get a table by its module-local index. |
| 555 | /// |
nothing calls this directly
no test coverage detected