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

Method default

atomic-core/src/diff/algorithm.rs:103–105  ·  view source on GitHub ↗

Returns the default algorithm (Myers). Myers is the default because: - It's well-studied and widely used (git default) - It guarantees optimal (minimum) edit distance - It performs well on typical source code changes

()

Source from the content-addressed store, hash-verified

101 /// - It guarantees optimal (minimum) edit distance
102 /// - It performs well on typical source code changes
103 fn default() -> Self {
104 Algorithm::Myers
105 }
106}
107
108impl fmt::Display for Algorithm {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected