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

Method optional_branch

atomic-core/examples/compact_semantic_codec/codec.rs:94–99  ·  view source on GitHub ↗
(&mut self, id: Option<BranchId>)

Source from the content-addressed store, hash-verified

92 }
93
94 fn optional_branch(&mut self, id: Option<BranchId>) {
95 put(&mut self.c.control, u64::from(id.is_some()));
96 if let Some(id) = id {
97 self.branch(id);
98 }
99 }
100
101 fn leaf(&mut self, id: LeafId) {
102 self.id(id.change_id(), id.leaf_idx());

Callers 2

encodeFunction · 0.45
decodeFunction · 0.45

Calls 3

putFunction · 0.70
branchMethod · 0.45
flagMethod · 0.45

Tested by

no test coverage detected