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

Method set_state

atomic-core/src/crdt/branch.rs:199–201  ·  view source on GitHub ↗

Sets the branch's state.

(&mut self, state: BranchState)

Source from the content-addressed store, hash-verified

197
198 /// Sets the branch's state.
199 pub fn set_state(&mut self, state: BranchState) {
200 self.state = state;
201 }
202
203 /// Sets the content hash.
204 pub fn set_line_hash(&mut self, hash: u64) {

Callers 1

test_branch_set_stateFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_branch_set_stateFunction · 0.36