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

Method insert

atomic-core/src/diff/ops.rs:123–129  ·  view source on GitHub ↗

Create an Insert operation.

(old_pos: usize, new_pos: usize, len: usize)

Source from the content-addressed store, hash-verified

121
122 /// Create an Insert operation.
123 pub fn insert(old_pos: usize, new_pos: usize, len: usize) -> Self {
124 DiffOp::Insert {
125 old_pos,
126 new_pos,
127 len,
128 }
129 }
130
131 /// Create a Delete operation.
132 pub fn delete(old_pos: usize, new_pos: usize, len: usize) -> Self {

Callers 15

build_turn_intent_mapFunction · 0.45
setMethod · 0.45
run_view_insertFunction · 0.45
run_tagFunction · 0.45
runMethod · 0.45
write_trackedFunction · 0.45
write_legacy_sidecarFunction · 0.45
runMethod · 0.45
write_trackedFunction · 0.45
build_reportFunction · 0.45
build_walkthroughFunction · 0.45

Calls

no outgoing calls