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

Method update_leaf_state

atomic-core/src/crdt/apply/leaf.rs:584–589  ·  view source on GitHub ↗
(&mut self, id: LeafId, state: LeafState)

Source from the content-addressed store, hash-verified

582 }
583
584 fn update_leaf_state(&mut self, id: LeafId, state: LeafState) -> Result<(), Self::Error> {
585 if let Some(leaf) = self.leaves.get_mut(&id) {
586 leaf.set_state(state);
587 }
588 Ok(())
589 }
590
591 fn update_leaf_content(
592 &mut self,

Callers 2

apply_deleteFunction · 0.45
apply_restoreFunction · 0.45

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected