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

Method fmt

cranelift/codegen/src/data_value.rs:296–305  ·  view source on GitHub ↗
(&self, f: &mut Formatter)

Source from the content-addressed store, hash-verified

294
295impl Display for DataValueCastFailure {
296 fn fmt(&self, f: &mut Formatter) -> fmt::Result {
297 match self {
298 DataValueCastFailure::TryInto(from, to) => {
299 write!(f, "unable to cast data value of type {from} to type {to}")
300 }
301 DataValueCastFailure::FromInteger(val, to) => {
302 write!(f, "unable to cast i64({val}) to a data value of type {to}")
303 }
304 }
305 }
306}
307
308/// Helper for creating conversion implementations for [DataValue].

Callers

nothing calls this directly

Calls 2

write_data_value_listFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected