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

Method lines

atomic-core/src/diff/display.rs:308–310  ·  view source on GitHub ↗

Iterate through all lines with their display status. Lines are yielded in the order they would appear in a unified diff: - Unchanged lines appear once - Removed lines appear with status `Removed` - Added lines appear with status `Added` - For replacements, removed lines come first, then added lines

(&'a self)

Source from the content-addressed store, hash-verified

306 /// - Added lines appear with status `Added`
307 /// - For replacements, removed lines come first, then added lines
308 pub fn lines(&'a self) -> UnifiedDiffIter<'a> {
309 UnifiedDiffIter::new(self)
310 }
311
312 /// Get the total number of lines that will be yielded.
313 ///

Callers 6

test_total_linesFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_total_linesFunction · 0.36