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

Method func_type

crates/wasmtime/src/runtime/func.rs:1713–1718  ·  view source on GitHub ↗
(
        engine: &Engine,
        params: impl Iterator<Item = ValType>,
    )

Source from the content-addressed store, hash-verified

1711 }
1712
1713 fn func_type(
1714 engine: &Engine,
1715 params: impl Iterator<Item = ValType>,
1716 ) -> Result<FuncType, OutOfMemory> {
1717 FuncType::try_new(engine, params, Some(<Self as WasmTy>::valtype()))
1718 }
1719
1720 fn into_fallible(self) -> Result<T> {
1721 Ok(self)

Callers 1

Calls 1

try_newFunction · 0.50

Tested by 1