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

Method get_leaf

atomic-core/tests/crdt_integration_test.rs:208–210  ·  view source on GitHub ↗
(&self, id: LeafId)

Source from the content-addressed store, hash-verified

206 }
207
208 fn get_leaf(&self, id: LeafId) -> Result<Option<Leaf>, Self::Error> {
209 Ok(self.leaves.get(&id).cloned())
210 }
211
212 fn has_leaf(&self, id: LeafId) -> Result<bool, Self::Error> {
213 Ok(self.leaves.contains_key(&id))

Calls 1

getMethod · 0.65

Tested by

no test coverage detected