MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / get_table

Method get_table

crates/wasmtime/src/runtime/instance.rs:540–542  ·  view source on GitHub ↗

Looks up an exported [`Table`] value by name. Returns `None` if there was no export named `name`, or if there was but it wasn't a table. # Panics Panics if `store` does not own this instance.

(&self, store: impl AsContextMut, name: &str)

Source from the content-addressed store, hash-verified

538 ///
539 /// Panics if `store` does not own this instance.
540 pub fn get_table(&self, store: impl AsContextMut, name: &str) -> Option<Table> {
541 self.get_export(store, name)?.into_table()
542 }
543
544 /// Looks up an exported [`Memory`] value by name.
545 ///

Callers 15

same_calleeFunction · 0.45
different_calleesFunction · 0.45
test_limitsFunction · 0.45
test_limits_asyncFunction · 0.45
test_limits_memory_onlyFunction · 0.45
test_limits_table_onlyFunction · 0.45
panic_in_table_limiterFunction · 0.45

Calls 2

into_tableMethod · 0.80
get_exportMethod · 0.45

Tested by 10

test_limitsFunction · 0.36
test_limits_asyncFunction · 0.36
test_limits_memory_onlyFunction · 0.36
test_limits_table_onlyFunction · 0.36
table_zeroedFunction · 0.36
instance_get_tableFunction · 0.36