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

Method func

crates/wasmtime/src/runtime/component/matching.rs:176–182  ·  view source on GitHub ↗
(&self, expected: TypeFuncIndex, actual: &HostFunc)

Source from the content-addressed store, hash-verified

174 }
175
176 fn func(&self, expected: TypeFuncIndex, actual: &HostFunc) -> Result<()> {
177 let instance_type = InstanceType {
178 types: self.types,
179 resources: Some(&self.imported_resources),
180 };
181 actual.typecheck(expected, &instance_type)
182 }
183}
184
185impl Definition {

Callers 1

definitionMethod · 0.45

Calls 1

typecheckMethod · 0.45

Tested by

no test coverage detected