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

Method new

crates/c-api/src/types/func.rs:91–95  ·  view source on GitHub ↗
(ty: FuncType)

Source from the content-addressed store, hash-verified

89
90impl wasm_functype_t {
91 pub(crate) fn new(ty: FuncType) -> wasm_functype_t {
92 wasm_functype_t {
93 ext: wasm_externtype_t::from_extern_type(ty.into()),
94 }
95 }
96
97 pub(crate) fn lazy(params: Vec<ValType>, results: Vec<ValType>) -> wasm_functype_t {
98 wasm_functype_t {

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
FuncTypeClass · 0.50

Tested by

no test coverage detected