MCPcopy Create free account
hub / github.com/argumentcomputer/ix / meta_fmt

Method meta_fmt

crates/kernel/src/id.rs:73–82  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

71 self.name.has_meta()
72 }
73 fn meta_fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
74 let hex = self.addr.hex();
75 let short = &hex[..8.min(hex.len())];
76 if self.name.has_meta() {
77 self.name.meta_fmt(f)?;
78 write!(f, "@{short}")
79 } else {
80 write!(f, "{short}")
81 }
82 }
83}
84
85/// Meta mode: `Nat.add@a1b2c3d4`. Anon mode: `a1b2c3d4`.

Callers 3

fmtMethod · 0.45
fmt_univFunction · 0.45
fmt_exprFunction · 0.45

Calls 3

hexMethod · 0.80
lenMethod · 0.45
has_metaMethod · 0.45

Tested by

no test coverage detected