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

Method is_empty

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

Check if the result is empty (both sequences were empty).

(&self)

Source from the content-addressed store, hash-verified

360
361 /// Check if the result is empty (both sequences were empty).
362 pub fn is_empty(&self) -> bool {
363 self.old_tokens.is_empty() && self.new_tokens.is_empty()
364 }
365
366 /// Count the number of inserted tokens.
367 pub fn insertions(&self) -> usize {

Callers 2

word_diff_with_configFunction · 0.45
merge_operationsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected