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

Method local_pattern_count

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

265 ///
266 /// Returns 0 if no local rules are loaded.
267 pub fn local_pattern_count(&self) -> usize {
268 self.local.as_ref().map(|g| g.len()).unwrap_or(0)
269 }
270
271 /// Get the number of patterns in global rules.
272 ///

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected