(&mut self, f: impl FnOnce(&mut Self) -> T)
| 167 | #[must_use] |
| 168 | #[inline] |
| 169 | fn with_recursion<T>(&mut self, f: impl FnOnce(&mut Self) -> T) -> Option<T> { |
| 170 | if self.depth_remaining == 0 { |
| 171 | return None; |
| 172 | } |
| 173 | |
| 174 | self.depth_remaining -= 1; |
| 175 | let result = f(self); |
| 176 | self.depth_remaining += 1; |
| 177 | Some(result) |
| 178 | } |
| 179 | |
| 180 | #[cold] |
| 181 | #[inline(never)] |
no test coverage detected