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

Method get_leaf

atomic-core/src/crdt/apply/leaf.rs:565–567  ·  view source on GitHub ↗
(&self, id: LeafId)

Source from the content-addressed store, hash-verified

563 }
564
565 fn get_leaf(&self, id: LeafId) -> Result<Option<Leaf>, Self::Error> {
566 Ok(self.leaves.get(&id).cloned())
567 }
568
569 fn has_leaf(&self, id: LeafId) -> Result<bool, Self::Error> {
570 Ok(self.leaves.contains_key(&id))

Callers 9

apply_deleteFunction · 0.45
apply_replaceFunction · 0.45
apply_restoreFunction · 0.45
validate_leaf_stateFunction · 0.45
validate_leaf_parentFunction · 0.45
test_apply_insertFunction · 0.45
test_apply_deleteFunction · 0.45
test_apply_replaceFunction · 0.45
test_apply_restoreFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 4

test_apply_insertFunction · 0.36
test_apply_deleteFunction · 0.36
test_apply_replaceFunction · 0.36
test_apply_restoreFunction · 0.36