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

Method update_leaf_content

atomic-core/tests/crdt_integration_test.rs:234–239  ·  view source on GitHub ↗
(&mut self, id: LeafId, range: Range<u32>)

Source from the content-addressed store, hash-verified

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) {
236 leaf.set_content_range(range);
237 }
238 Ok(())
239 }
240
241 fn list_leaves(&self, branch_id: BranchId) -> Result<Vec<LeafId>, Self::Error> {
242 Ok(self

Callers

nothing calls this directly

Calls 2

get_mutMethod · 0.80
set_content_rangeMethod · 0.45

Tested by

no test coverage detected