Check if a path exceeds the maximum depth. # Arguments `path` - Path to check # Returns `true` if the path exceeds max_depth.
(&self, path: &str)
| 420 | /// |
| 421 | /// `true` if the path exceeds max_depth. |
| 422 | pub fn exceeds_depth(&self, path: &str) -> bool { |
| 423 | if let Some(max) = self.max_depth { |
| 424 | Self::path_depth(path) > max |
| 425 | } else { |
| 426 | false |
| 427 | } |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | impl Default for TreeCollectOptions { |