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

Method update_leaf_state

atomic-core/tests/crdt_integration_test.rs:227–232  ·  view source on GitHub ↗
(&mut self, id: LeafId, state: LeafState)

Source from the content-addressed store, hash-verified

225 }
226
227 fn update_leaf_state(&mut self, id: LeafId, state: LeafState) -> Result<(), Self::Error> {
228 if let Some(leaf) = self.leaves.get_mut(&id) {
229 leaf.set_state(state);
230 }
231 Ok(())
232 }
233
234 fn update_leaf_content(&mut self, id: LeafId, range: Range<u32>) -> Result<(), Self::Error> {
235 if let Some(leaf) = self.leaves.get_mut(&id) {

Callers

nothing calls this directly

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected