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

Method get_branch

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

Source from the content-addressed store, hash-verified

510 }
511
512 fn get_branch(&self, id: BranchId) -> Result<Option<Branch>, Self::Error> {
513 Ok(self.branches.get(&id).cloned())
514 }
515
516 fn has_branch(&self, id: BranchId) -> Result<bool, Self::Error> {
517 Ok(self.branches.contains_key(&id))

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected