pub type MismatchDiffHook<T> = Arc<dyn Fn(&T, &T) -> Vec<MismatchEntry> + Send + Sync>;Expand description
Replaces the built-in difference computation of confirmed-mismatch
warnings for one operation: receives the compared cached and source values
and returns the differences. Like the comparator it must be deterministic,
side-effect-free and bounded; a panic logs the difference fields as
unavailable with a hook_error outcome and never falls back to the
built-in computation. Runs through
Runtime::spawn_blocking after mismatch
confirmation, and only when mismatch_logging.diff is above off.
Aliased Typeยง
pub struct MismatchDiffHook<T> { /* private fields */ }