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

setMethod · 0.45
run_from_viewFunction · 0.45
run_tagFunction · 0.45
runMethod · 0.45
run_with_verifierMethod · 0.45
seed_configFunction · 0.45
get_imported_shasMethod · 0.45
build_graph_first_changeFunction · 0.45
apply_line_index_updatesFunction · 0.45

Calls

no outgoing calls