(&self, format_mode: FormatMode)
| 167 | } |
| 168 | |
| 169 | fn to_ast_string(&self, format_mode: FormatMode) -> String { |
| 170 | let mut buf = String::new(); |
| 171 | let mut f = AstFormatter::new(&mut buf, format_mode); |
| 172 | self.fmt(&mut f); |
| 173 | buf |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | // Derive a fmt::Display implementation for types implementing AstDisplay. |