(&mut self, f: impl FnOnce(&mut Self) -> T)
| 109 | #[must_use] |
| 110 | #[inline] |
| 111 | fn with_recursion<T>(&mut self, f: impl FnOnce(&mut Self) -> T) -> Option<T> { |
| 112 | if self.depth_remaining == 0 { |
| 113 | return None; |
| 114 | } |
| 115 | |
| 116 | self.depth_remaining -= 1; |
| 117 | let result = f(self); |
| 118 | self.depth_remaining += 1; |
| 119 | Some(result) |
| 120 | } |
| 121 | |
| 122 | #[cold] |
| 123 | #[inline(never)] |
no test coverage detected