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

Method ty

crates/wasmtime/src/runtime/func.rs:872–874  ·  view source on GitHub ↗

Returns the underlying wasm type that this `Func` has. # Panics Panics if `store` does not own this function.

(&self, store: impl AsContext)

Source from the content-addressed store, hash-verified

870 ///
871 /// Panics if `store` does not own this function.
872 pub fn ty(&self, store: impl AsContext) -> FuncType {
873 self.load_ty(&store.as_context().0)
874 }
875
876 /// Forcibly loads the type of this function from the `Engine`.
877 ///

Callers 2

newMethod · 0.45
_serializeMethod · 0.45

Calls 2

load_tyMethod · 0.45
as_contextMethod · 0.45

Tested by

no test coverage detected