(&mut self, mut f: F)
| 298 | |
| 299 | impl<T: AsMut<Indent>> IndentLike for T { |
| 300 | fn indented<F>(&mut self, mut f: F) -> fmt::Result |
| 301 | where |
| 302 | F: FnMut(&mut Self) -> fmt::Result, |
| 303 | { |
| 304 | *self.as_mut() += 1; |
| 305 | let result = f(self); |
| 306 | *self.as_mut() -= 1; |
| 307 | result |
| 308 | } |
| 309 | |
| 310 | fn indented_if<F>(&mut self, guard: bool, mut f: F) -> fmt::Result |
| 311 | where |
no test coverage detected