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

Method get_leaf

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

Source from the content-addressed store, hash-verified

615 }
616
617 fn get_leaf(&self, id: LeafId) -> Result<Option<Leaf>, Self::Error> {
618 Ok(self.leaves.get(&id).cloned())
619 }
620
621 fn has_leaf(&self, id: LeafId) -> Result<bool, Self::Error> {
622 Ok(self.leaves.contains_key(&id))

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected