Function compare_retained_captures
pub fn compare_retained_captures(
reference: &[CanonicalValue],
observed: &CanonicalValue,
mode: ComparisonMode,
limits: CaptureComparisonLimits,
) -> Result<RetainedCaptureComparison, ProfileDataError>Available on crate features
std and ua only.Expand description
Compare an observation with whole retained tuples, then diagnose the first reference if no tuple matches. Counts and derived rules are not compared. Both canonical bytes and digest are validated before matching. The selected mode controls only documented exclusions; reported identities always refer to the original captures, including when their comparison projections differ.