Return the current scope depth.
(&self)
| 206 | |
| 207 | /// Return the current scope depth. |
| 208 | pub fn depth(&self) -> usize { |
| 209 | self.generation_by_depth |
| 210 | .len() |
| 211 | .checked_sub(1) |
| 212 | .expect("generation_by_depth cannot be empty") |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | #[cfg(test)] |
no test coverage detected