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

Method is_empty

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

Check if the store is empty.

(&self)

Source from the content-addressed store, hash-verified

399
400 /// Check if the store is empty.
401 pub fn is_empty(&self) -> bool {
402 self.changes.read().unwrap().is_empty()
403 }
404
405 /// Clear all changes from the store.
406 pub fn clear(&self) {

Callers 2

has_contentsMethod · 0.45
has_contentsMethod · 0.45

Calls 2

unwrapMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected