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

Method fmt

cranelift/codegen/src/machinst/valueregs.rs:30–42  ·  view source on GitHub ↗
(&self, f: &mut core::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

28
29impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> Debug for ValueRegs<R> {
30 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
31 let mut f = f.debug_tuple("ValueRegs");
32 let mut last_valid = true;
33 for part in self.parts {
34 if part.is_invalid_sentinel() {
35 last_valid = false;
36 } else {
37 debug_assert!(last_valid);
38 f.field(&part);
39 }
40 }
41 f.finish()
42 }
43}
44
45/// A type with an "invalid" sentinel value.

Callers

nothing calls this directly

Calls 3

is_invalid_sentinelMethod · 0.80
fieldMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected