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

Method ty

crates/wasmtime/src/runtime/linker.rs:1433–1438  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1431 }
1432
1433 pub(crate) fn ty(&self) -> DefinitionType {
1434 match self {
1435 Definition::Extern(_, ty) => *ty,
1436 Definition::HostFunc(func) => DefinitionType::Func(func.sig_index()),
1437 }
1438 }
1439
1440 /// Inserts this definition into the `store` provided.
1441 ///

Callers 5

commandMethod · 0.45
fromMethod · 0.45
newMethod · 0.45

Calls 3

sig_indexMethod · 0.80
FuncClass · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected