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

Method update_leaf_content

atomic-core/src/crdt/apply/traits.rs:648–657  ·  view source on GitHub ↗
(
            &mut self,
            id: LeafId,
            range: Range<u32>,
        )

Source from the content-addressed store, hash-verified

646 }
647
648 fn update_leaf_content(
649 &mut self,
650 id: LeafId,
651 range: Range<u32>,
652 ) -> Result<(), Self::Error> {
653 if let Some(leaf) = self.leaves.get_mut(&id) {
654 leaf.set_content_range(range);
655 }
656 Ok(())
657 }
658
659 fn list_leaves(&self, branch_id: BranchId) -> Result<Vec<LeafId>, Self::Error> {
660 Ok(self

Callers 1

test_update_leaf_contentFunction · 0.45

Calls 2

get_mutMethod · 0.80
set_content_rangeMethod · 0.45

Tested by 1

test_update_leaf_contentFunction · 0.36