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

Method local_pattern_count

atomic-repository/src/ignore.rs:245–247  ·  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

243 ///
244 /// Returns 0 if no local rules are loaded.
245 pub fn local_pattern_count(&self) -> usize {
246 self.local.as_ref().map(|g| g.len()).unwrap_or(0)
247 }
248
249 /// Get the number of patterns in global rules.
250 ///

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected