(&self)
| 241 | } |
| 242 | |
| 243 | fn descend(&self) -> Result<(), RecursionLimitError> { |
| 244 | let mut depth = self.depth.borrow_mut(); |
| 245 | if *depth < self.limit { |
| 246 | *depth += 1; |
| 247 | Ok(()) |
| 248 | } else { |
| 249 | Err(RecursionLimitError::new(self.limit)) |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | fn ascend(&self) { |
| 254 | *self.depth.borrow_mut() -= 1; |
no outgoing calls
no test coverage detected