MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / local_pattern_count

Method local_pattern_count

atomic-repository/src/ignore.rs:272–274  ·  view source on GitHub ↗

Get the number of patterns in local rules. Returns 0 if no local rules are loaded.

(&self)

Source from the content-addressed store, hash-verified

270 ///
271 /// Returns 0 if no local rules are loaded.
272 pub fn local_pattern_count(&self) -> usize {
273 self.local.as_ref().map(|g| g.len()).unwrap_or(0)
274 }
275
276 /// Get the number of patterns in global rules.
277 ///

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected