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

Method replace

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

Create a Replace operation.

(old_pos: usize, old_len: usize, new_pos: usize, new_len: usize)

Source from the content-addressed store, hash-verified

139
140 /// Create a Replace operation.
141 pub fn replace(old_pos: usize, old_len: usize, new_pos: usize, new_len: usize) -> Self {
142 DiffOp::Replace {
143 old_pos,
144 old_len,
145 new_pos,
146 new_len,
147 }
148 }
149
150 /// Check if this is an Equal operation.
151 pub fn is_equal(&self) -> bool {

Callers 15

run_pushMethod · 0.45
reindex_working_copyFunction · 0.45
add_dir_recursiveFunction · 0.45
newMethod · 0.45
matchesMethod · 0.45
slow_import_commit_labelFunction · 0.45
import_branchMethod · 0.45
phase2_writeMethod · 0.45
derive_profile_nameFunction · 0.45
dot_escape_idFunction · 0.45

Calls

no outgoing calls