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

Method prepend_equal

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

Prepend an Equal operation at the start.

(&mut self, old_pos: usize, len: usize)

Source from the content-addressed store, hash-verified

535
536 /// Prepend an Equal operation at the start.
537 pub(crate) fn prepend_equal(&mut self, old_pos: usize, len: usize) {
538 self.ops.insert(0, DiffOp::equal(old_pos, old_pos, len));
539 }
540
541 /// Append an Equal operation at the end.
542 pub(crate) fn append_equal(&mut self, old_pos: usize, new_pos: usize, len: usize) {

Callers 1

diff_with_optionsFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected