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

Method set_state

atomic-core/src/crdt/leaf.rs:225–227  ·  view source on GitHub ↗

Sets the leaf's state.

(&mut self, state: LeafState)

Source from the content-addressed store, hash-verified

223
224 /// Sets the leaf's state.
225 pub fn set_state(&mut self, state: LeafState) {
226 self.state = state;
227 }
228
229 /// Sets the token kind.
230 pub fn set_kind(&mut self, kind: TokenKind) {

Callers 14

test_leaf_set_stateFunction · 0.45
update_trunk_stateMethod · 0.45
update_branch_stateMethod · 0.45
update_leaf_stateMethod · 0.45
update_trunk_stateMethod · 0.45
update_branch_stateMethod · 0.45
update_leaf_stateMethod · 0.45
update_trunk_stateMethod · 0.45
update_branch_stateMethod · 0.45
update_leaf_stateMethod · 0.45
update_trunk_stateMethod · 0.45
update_trunk_stateMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_leaf_set_stateFunction · 0.36
update_trunk_stateMethod · 0.36
update_branch_stateMethod · 0.36
update_leaf_stateMethod · 0.36