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

Method len

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

Get the number of changes in the store.

(&self)

Source from the content-addressed store, hash-verified

394
395 /// Get the number of changes in the store.
396 pub fn len(&self) -> usize {
397 self.changes.read().unwrap().len()
398 }
399
400 /// Check if the store is empty.
401 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 2

unwrapMethod · 0.45
readMethod · 0.45

Tested by 4

test_get_contents_basicFunction · 0.36
test_unicode_contentFunction · 0.36
test_binary_contentFunction · 0.36