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

Method edit_distance

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

Get the edit distance (total changes = insertions + deletions).

(&self)

Source from the content-addressed store, hash-verified

448
449 /// Get the edit distance (total changes = insertions + deletions).
450 pub fn edit_distance(&self) -> usize {
451 self.insertions() + self.deletions()
452 }
453
454 /// Iterate over all operations.
455 pub fn iter(&self) -> impl Iterator<Item = &DiffOp> {

Callers

nothing calls this directly

Calls 2

insertionsMethod · 0.45
deletionsMethod · 0.45

Tested by

no test coverage detected