TODO(justin): make this only accept a &str so that we don't accidentally pass an AstDisplay to it.
(&mut self, s: T)
| 102 | // TODO(justin): make this only accept a &str so that we don't accidentally pass an AstDisplay |
| 103 | // to it. |
| 104 | pub fn write_str<T: fmt::Display>(&mut self, s: T) { |
| 105 | write!(self.buf, "{}", s).expect("unexpected error in fmt::Display implementation"); |
| 106 | } |
| 107 | |
| 108 | // Whether the AST should be optimized for persistence. |
| 109 | pub fn stable(&self) -> bool { |