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

Method count_leaves

atomic-core/src/crdt/apply/branch.rs:662–664  ·  view source on GitHub ↗
(&self, branch_id: BranchId)

Source from the content-addressed store, hash-verified

660 }
661
662 fn count_leaves(&self, branch_id: BranchId) -> Result<usize, Self::Error> {
663 Ok(self.branch_leaves.get(&branch_id).map_or(0, |v| v.len()))
664 }
665
666 fn alloc_inode(&mut self) -> Result<Inode, Self::Error> {
667 let inode = Inode::new(self.next_inode);

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
lenMethod · 0.45

Tested by

no test coverage detected