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

Method line_count

atomic-core/src/output/crdt.rs:236–238  ·  view source on GitHub ↗

Returns the number of alive lines.

(&self)

Source from the content-addressed store, hash-verified

234
235 /// Returns the number of alive lines.
236 pub fn line_count(&self) -> usize {
237 self.lines.iter().filter(|l| l.is_alive()).count()
238 }
239
240 /// Returns the number of all lines (including deleted).
241 pub fn total_line_count(&self) -> usize {

Callers

nothing calls this directly

Calls 3

countMethod · 0.45
iterMethod · 0.45
is_aliveMethod · 0.45

Tested by

no test coverage detected