Get the current number of elements in the table.
(&self, store: &Store)
| 379 | |
| 380 | /// Get the current number of elements in the table. |
| 381 | pub fn size(&self, store: &Store) -> Result<usize> { |
| 382 | Ok(self.instance(store)?.size() as usize) |
| 383 | } |
| 384 | |
| 385 | /// Get a table element as a wasm reference value. |
| 386 | pub fn get(&self, store: &Store, index: TableAddr) -> Result<WasmValue> { |