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

Method has_operations

atomic-core/src/diff/semantic_to_crdt.rs:172–178  ·  view source on GitHub ↗

Check if any operations were generated.

(&self)

Source from the content-addressed store, hash-verified

170impl ConversionStats {
171 /// Check if any operations were generated.
172 pub fn has_operations(&self) -> bool {
173 self.lines_inserted > 0
174 || self.lines_deleted > 0
175 || self.tokens_inserted > 0
176 || self.tokens_deleted > 0
177 || self.tokens_replaced > 0
178 }
179
180 /// Get total line operations.
181 pub fn total_line_ops(&self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected