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

Method update_leaf_state

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

Source from the content-addressed store, hash-verified

634 }
635
636 fn update_leaf_state(&mut self, id: LeafId, state: LeafState) -> Result<(), Self::Error> {
637 if let Some(leaf) = self.leaves.get_mut(&id) {
638 leaf.set_state(state);
639 }
640 Ok(())
641 }
642
643 fn update_leaf_content(
644 &mut self,

Callers

nothing calls this directly

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected