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

Method update_leaf_state

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

Source from the content-addressed store, hash-verified

639 }
640
641 fn update_leaf_state(&mut self, id: LeafId, state: LeafState) -> Result<(), Self::Error> {
642 if let Some(leaf) = self.leaves.get_mut(&id) {
643 leaf.set_state(state);
644 }
645 Ok(())
646 }
647
648 fn update_leaf_content(
649 &mut self,

Callers 2

mark_leaf_deletedMethod · 0.45
mark_leaf_aliveMethod · 0.45

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected