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

Method branch

atomic-core/examples/compact_semantic_codec/codec.rs:90–92  ·  view source on GitHub ↗
(&mut self, id: BranchId)

Source from the content-addressed store, hash-verified

88 }
89
90 fn branch(&mut self, id: BranchId) {
91 self.id(id.change_id(), id.branch_idx());
92 }
93
94 fn optional_branch(&mut self, id: Option<BranchId>) {
95 put(&mut self.c.control, u64::from(id.is_some()));

Callers 3

optional_branchMethod · 0.45
encodeFunction · 0.45
decodeFunction · 0.45

Calls 3

branch_idxMethod · 0.80
idMethod · 0.45
change_idMethod · 0.45

Tested by

no test coverage detected