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

Method is_empty

atomic-core/src/change/store.rs:377–379  ·  view source on GitHub ↗

Check if the store is empty.

(&self)

Source from the content-addressed store, hash-verified

375
376 /// Check if the store is empty.
377 pub fn is_empty(&self) -> bool {
378 self.changes.read().unwrap().is_empty()
379 }
380
381 /// Clear all changes from the store.
382 pub fn clear(&self) {

Callers 2

has_contentsMethod · 0.45
has_contentsMethod · 0.45

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected