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

Method new

atomic-core/src/diff/word.rs:288–294  ·  view source on GitHub ↗

Create a new empty diff result.

(old_tokens: Vec<Token<'a>>, new_tokens: Vec<Token<'a>>)

Source from the content-addressed store, hash-verified

286impl<'a> WordDiffResult<'a> {
287 /// Create a new empty diff result.
288 fn new(old_tokens: Vec<Token<'a>>, new_tokens: Vec<Token<'a>>) -> Self {
289 Self {
290 ops: Vec::new(),
291 old_tokens,
292 new_tokens,
293 }
294 }
295
296 /// Create a result indicating no changes (all equal).
297 fn all_equal(old_tokens: Vec<Token<'a>>, new_tokens: Vec<Token<'a>>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected