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

Method len

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

Get the number of changes in the store.

(&self)

Source from the content-addressed store, hash-verified

370
371 /// Get the number of changes in the store.
372 pub fn len(&self) -> usize {
373 self.changes.read().unwrap().len()
374 }
375
376 /// Check if the store is empty.
377 pub fn is_empty(&self) -> bool {

Callers 7

fmtMethod · 0.45
get_contentsMethod · 0.45
get_contents_extMethod · 0.45
test_get_contents_basicFunction · 0.45
test_unicode_contentFunction · 0.45
test_binary_contentFunction · 0.45

Calls 1

unwrapMethod · 0.45

Tested by 4

test_get_contents_basicFunction · 0.36
test_unicode_contentFunction · 0.36
test_binary_contentFunction · 0.36