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

Method fmt

cranelift/codegen/src/ir/sourceloc.rs:45–51  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

43
44impl fmt::Display for SourceLoc {
45 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
46 if self.is_default() {
47 write!(f, "@-")
48 } else {
49 write!(f, "@{:04x}", self.0)
50 }
51 }
52}
53
54/// Source location relative to another base source location.

Callers

nothing calls this directly

Calls 1

is_defaultMethod · 0.45

Tested by

no test coverage detected