(&mut self, f: F)
| 204 | /// reference to `Self`. |
| 205 | #[inline(always)] |
| 206 | fn checked_recur_mut<F, T, E>(&mut self, f: F) -> Result<T, E> |
| 207 | where |
| 208 | F: FnOnce(&mut Self) -> Result<T, E>, |
| 209 | E: From<RecursionLimitError>, |
| 210 | { |
| 211 | self.recursion_guard().descend()?; |
| 212 | let out = maybe_grow(|| f(self)); |
| 213 | self.recursion_guard().ascend(); |
| 214 | out |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | /// Tracks recursion depth. |
no test coverage detected