Increase indentation level for the duration of `f`.
(&mut self, f: F)
| 115 | |
| 116 | /// Increase indentation level for the duration of `f`. |
| 117 | pub fn indent<T, F: FnOnce(&mut Formatter) -> T>(&mut self, f: F) -> T { |
| 118 | self.indent_push(); |
| 119 | let ret = f(self); |
| 120 | self.indent_pop(); |
| 121 | ret |
| 122 | } |
| 123 | |
| 124 | /// Get the current whitespace indentation in the form of a String. |
| 125 | fn get_indent(&self) -> String { |
no test coverage detected