(&self)
| 37 | } |
| 38 | |
| 39 | pub fn validate_balanced(&self) { |
| 40 | if !self.stack.is_empty() { |
| 41 | panic!("Unbalanced visit/exit: {} nodes were visited but not exited: {:?}", self.stack.len(), self.stack); |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | #[cfg(feature = "visitable")] |
no test coverage detected