MCPcopy Create free account
hub / github.com/bluejekyll/wasmtime-java / push_arg_tys

Method push_arg_tys

wasmtime-jni/src/wasm_value.rs:57–68  ·  view source on GitHub ↗
(&self, args: &mut Vec<ValType>)

Source from the content-addressed store, hash-verified

55
56impl WasmTy {
57 pub fn push_arg_tys(&self, args: &mut Vec<ValType>) {
58 match self {
59 WasmTy::ByteBuffer | WasmTy::ByteArray | WasmTy::String => {
60 WasmSlice::push_arg_tys(args)
61 }
62 WasmTy::ValType(ValType::I32) => i32::push_arg_tys(args),
63 WasmTy::ValType(ValType::I64) => i64::push_arg_tys(args),
64 WasmTy::ValType(ValType::F32) => f32::push_arg_tys(args),
65 WasmTy::ValType(ValType::F64) => f64::push_arg_tys(args),
66 WasmTy::ValType(_) => unimplemented!(),
67 }
68 }
69
70 pub fn matches_arg_tys(&self, tys: impl Iterator<Item = ValType>) -> anyhow::Result<()> {
71 match self {

Calls

no outgoing calls

Tested by

no test coverage detected