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

Method update_leaf_content

atomic-core/src/crdt/apply/branch.rs:643–652  ·  view source on GitHub ↗
(
            &mut self,
            id: LeafId,
            range: std::ops::Range<u32>,
        )

Source from the content-addressed store, hash-verified

641 }
642
643 fn update_leaf_content(
644 &mut self,
645 id: LeafId,
646 range: std::ops::Range<u32>,
647 ) -> Result<(), Self::Error> {
648 if let Some(leaf) = self.leaves.get_mut(&id) {
649 leaf.set_content_range(range);
650 }
651 Ok(())
652 }
653
654 fn list_leaves(&self, branch_id: BranchId) -> Result<Vec<LeafId>, Self::Error> {
655 Ok(self

Callers

nothing calls this directly

Calls 2

get_mutMethod · 0.80
set_content_rangeMethod · 0.45

Tested by

no test coverage detected