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

Method count_leaves

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

Source from the content-addressed store, hash-verified

608 }
609
610 fn count_leaves(&self, branch_id: BranchId) -> Result<usize, Self::Error> {
611 Ok(self.branch_leaves.get(&branch_id).map_or(0, |v| v.len()))
612 }
613
614 fn alloc_inode(&mut self) -> Result<Inode, Self::Error> {
615 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