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

Method fmt

crates/environ/src/types.rs:166–175  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

164
165impl 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
178impl TypeTrace for WasmValType {

Callers

nothing calls this directly

Calls 8

fmtFunction · 0.85
OkFunction · 0.85
is_emptyMethod · 0.45
paramsMethod · 0.45
resultsMethod · 0.45
iterMethod · 0.45
is_noneMethod · 0.45
write_strMethod · 0.45

Tested by

no test coverage detected