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
write_trackedFunction · 0.45
write_legacy_sidecarFunction · 0.45
runMethod · 0.45
write_trackedFunction · 0.45
run_with_verifierMethod · 0.45
seed_configFunction · 0.45
get_imported_shasMethod · 0.45

Calls

no outgoing calls

Tested by 15

runMethod · 0.36
runMethod · 0.36
test_diff_format_hashFunction · 0.36
walkFunction · 0.36
test_node_hashFunction · 0.36
test_file_metadata_hashFunction · 0.36