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

Method update_leaf_content

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

Source from the content-addressed store, hash-verified

589 }
590
591 fn update_leaf_content(
592 &mut self,
593 id: LeafId,
594 range: std::ops::Range<u32>,
595 ) -> Result<(), Self::Error> {
596 if let Some(leaf) = self.leaves.get_mut(&id) {
597 leaf.set_content_range(range);
598 }
599 Ok(())
600 }
601
602 fn list_leaves(&self, branch_id: BranchId) -> Result<Vec<LeafId>, Self::Error> {
603 Ok(self

Callers 1

apply_replaceFunction · 0.45

Calls 2

get_mutMethod · 0.80
set_content_rangeMethod · 0.45

Tested by

no test coverage detected