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

Method fmt

cranelift/codegen/src/egraph/cost.rs:37–43  ·  view source on GitHub ↗
(&self, f: &mut core::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

35
36impl core::fmt::Debug for Cost {
37 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
38 if *self == Cost::infinity() {
39 write!(f, "Cost::Infinite")
40 } else {
41 f.debug_tuple("Cost::Finite").field(&self.cost()).finish()
42 }
43 }
44}
45
46impl Cost {

Callers

nothing calls this directly

Calls 3

finishMethod · 0.45
fieldMethod · 0.45
costMethod · 0.45

Tested by

no test coverage detected