#[non_exhaustive]pub struct DiffMetrics {
pub sheets_read: u32,
pub cells_read: u64,
pub cells_compared: u64,
pub diffs_emitted: u64,
pub diagnostics_emitted: u64,
}Expand description
Internal processing metrics (RFC-024, RFC-027).
Useful for benchmarking, performance analysis, and debugging. Always populated; fields are cumulative across the whole comparison.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sheets_read: u32Sheet pairs processed — one per matched, added, or removed sheet.
cells_read: u64Every cell physically visited while reading both workbooks,
including empty cells inside the used range — this is not the
number of cells with content. On the sparse_range corpus fixture
(two populated cells far apart in a large used range) this reads
5200 against cells_compared’s 2: almost the entire count
is empty cells the used range spans but never populates. Always
>= cells_compared.
cells_compared: u64Every coordinate compared between the two sides: the union of both
sides’ populated cells for each sheet pair, remapped by alignment
when alignment is not Positional. Counted once per coordinate
regardless of whether it produced a diff — always >= diffs_emitted.
diffs_emitted: u64Cell-level differences returned in the result — the count behind
every CellDiff across all sheets. Always <= cells_compared.
diagnostics_emitted: u64Diagnostic entries attached to the result, workbook-level and
per-sheet combined.
Trait Implementations§
Source§impl Clone for DiffMetrics
impl Clone for DiffMetrics
Source§fn clone(&self) -> DiffMetrics
fn clone(&self) -> DiffMetrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more