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

Method count_leaves

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

Source from the content-addressed store, hash-verified

665 }
666
667 fn count_leaves(&self, branch_id: BranchId) -> Result<usize, Self::Error> {
668 Ok(self.branch_leaves.get(&branch_id).map_or(0, |v| v.len()))
669 }
670
671 fn alloc_inode(&mut self) -> Result<Inode, Self::Error> {
672 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