(&self, f: &mut fmt::Formatter)
| 164 | |
| 165 | impl fmt::Display for WasmValType { |
| 166 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 167 | match self { |
| 168 | WasmValType::I32 => write!(f, "i32"), |
| 169 | WasmValType::I64 => write!(f, "i64"), |
| 170 | WasmValType::F32 => write!(f, "f32"), |
| 171 | WasmValType::F64 => write!(f, "f64"), |
| 172 | WasmValType::V128 => write!(f, "v128"), |
| 173 | WasmValType::Ref(rt) => write!(f, "{rt}"), |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | impl TypeTrace for WasmValType { |