Get the number of patterns in global rules. Returns 0 if no global rules are loaded.
(&self)
| 277 | /// |
| 278 | /// Returns 0 if no global rules are loaded. |
| 279 | pub fn global_pattern_count(&self) -> usize { |
| 280 | self.global.as_ref().map(|g| g.len()).unwrap_or(0) |
| 281 | } |
| 282 | |
| 283 | /// Debug method: check why a path matches or doesn't match. |
| 284 | /// |