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

Class DisplayDataValues

cranelift/codegen/src/data_value.rs:377–377  ·  view source on GitHub ↗

Helper structure for printing bracket-enclosed vectors of [DataValue]s. - for empty vectors, display `[]` - for single item vectors, display `42`, e.g. - for multiple item vectors, display `[42, 43, 44]`, e.g.

Source from the content-addressed store, hash-verified

375/// - for single item vectors, display `42`, e.g.
376/// - for multiple item vectors, display `[42, 43, 44]`, e.g.
377pub struct DisplayDataValues<'a>(pub &'a [DataValue]);
378
379impl<'a> Display for DisplayDataValues<'a> {
380 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {

Callers 2

runMethod · 0.85
fmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected