(&self, f: &mut Formatter<'_>)
| 174 | |
| 175 | impl<'a> Display for DisplayBlockCall<'a> { |
| 176 | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { |
| 177 | write!(f, "{}", self.block.block(&self.pool))?; |
| 178 | if self.block.len(self.pool) > 0 { |
| 179 | write!(f, "(")?; |
| 180 | for (ix, arg) in self.block.args(self.pool).enumerate() { |
| 181 | if ix > 0 { |
| 182 | write!(f, ", ")?; |
| 183 | } |
| 184 | write!(f, "{arg}")?; |
| 185 | } |
| 186 | write!(f, ")")?; |
| 187 | } |
| 188 | Ok(()) |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /// A `BlockArg` is a sum type of `Value`, `TryCallRet`, and |