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

Method get_tag

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

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

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

Source from the content-addressed store, hash-verified

591 ///
592 /// Panics if `store` does not own this instance.
593 pub fn get_tag(&self, store: impl AsContextMut, name: &str) -> Option<Tag> {
594 self.get_export(store, name)?.into_tag()
595 }
596
597 #[allow(
598 dead_code,

Callers 2

wasm_export_tagsFunction · 0.45
wasm_import_tagsFunction · 0.45

Calls 2

into_tagMethod · 0.80
get_exportMethod · 0.45

Tested by

no test coverage detected