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

Method params

crates/c-api/src/types/func.rs:40–45  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

38 }
39
40 fn params(&self) -> impl ExactSizeIterator<Item = ValType> + '_ {
41 match self {
42 LazyFuncType::Lazy { params, .. } => LazyFuncTypeIter::Lazy(params.iter()),
43 LazyFuncType::FuncType(f) => LazyFuncTypeIter::FuncType(f.params()),
44 }
45 }
46
47 fn results(&self) -> impl ExactSizeIterator<Item = ValType> + '_ {
48 match self {

Calls 2

FuncTypeClass · 0.50
iterMethod · 0.45

Tested by

no test coverage detected