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

Method inserted_bytes

atomic-core/src/diff/inline.rs:474–480  ·  view source on GitHub ↗

Get the total number of bytes that were inserted.

(&self)

Source from the content-addressed store, hash-verified

472
473 /// Get the total number of bytes that were inserted.
474 pub fn inserted_bytes(&self) -> usize {
475 self.new_hunks
476 .iter()
477 .filter(|s| s.is_change())
478 .map(|s| s.len())
479 .sum()
480 }
481
482 /// Render the old line with ANSI highlighting for terminal output.
483 ///

Callers

nothing calls this directly

Calls 3

iterMethod · 0.45
is_changeMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected