(&self, f: &mut fmt::Formatter<'_>)
| 66 | |
| 67 | impl 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 |
nothing calls this directly
no outgoing calls
no test coverage detected