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

Function shift_insertion

atomic-core/src/record/workflow/assembly/mod.rs:70–73  ·  view source on GitHub ↗
(ins: &mut Insertion<Option<Hash>>, shift: u64)

Source from the content-addressed store, hash-verified

68 use crate::types::ChangePosition;
69
70 fn shift_insertion(ins: &mut Insertion<Option<Hash>>, shift: u64) {
71 ins.start = ChangePosition::new(ins.start.get() + shift);
72 ins.end = ChangePosition::new(ins.end.get() + shift);
73 }
74
75 match op {
76 GraphOp::Edit {

Callers 1

shift_graph_op_contentFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected