(&self, args: &mut Vec<ValType>)
| 55 | |
| 56 | impl 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 { |
no outgoing calls
no test coverage detected