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

Method ty

crates/wasmtime/src/runtime/component/func.rs:181–183  ·  view source on GitHub ↗

Get the type of this function.

(&self, store: impl AsContext)

Source from the content-addressed store, hash-verified

179
180 /// Get the type of this function.
181 pub fn ty(&self, store: impl AsContext) -> ComponentFunc {
182 self.ty_(store.as_context().0)
183 }
184
185 fn ty_(&self, store: &StoreOpaque) -> ComponentFunc {
186 let cx = InstanceType::new(self.instance.id().get(store));

Callers 2

check_params_resultsMethod · 0.45

Calls 2

ty_Method · 0.45
as_contextMethod · 0.45

Tested by

no test coverage detected