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

Method get_leaf

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

Source from the content-addressed store, hash-verified

620 }
621
622 fn get_leaf(&self, id: LeafId) -> Result<Option<Leaf>, Self::Error> {
623 Ok(self.leaves.get(&id).cloned())
624 }
625
626 fn has_leaf(&self, id: LeafId) -> Result<bool, Self::Error> {
627 Ok(self.leaves.contains_key(&id))

Callers 3

test_put_and_get_leafFunction · 0.45
test_update_leaf_contentFunction · 0.45
test_mark_leaf_deletedFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 3

test_put_and_get_leafFunction · 0.36
test_update_leaf_contentFunction · 0.36
test_mark_leaf_deletedFunction · 0.36