MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / fmt

Method fmt

lean-agentic/src/level.rs:68–77  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

66
67impl fmt::Display for Level {
68 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
69 match self {
70 Level::Zero => write!(f, "0"),
71 Level::Const(n) => write!(f, "{}", n),
72 Level::Param(n) => write!(f, "u{}", n),
73 Level::Succ(id) => write!(f, "(succ {})", id.0),
74 Level::Max(a, b) => write!(f, "(max {} {})", a.0, b.0),
75 Level::IMax(a, b) => write!(f, "(imax {} {})", a.0, b.0),
76 }
77 }
78}
79
80/// Arena for interning universe levels

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected