Skip to main content

null_summary

Function null_summary 

Source
pub fn null_summary() -> DivergenceSummary
Expand description

Return a crate::DivergenceSummary with all fields None (first-snapshot path).

See sdivi_snapshot::delta::null_summary for full documentation. Returns a DivergenceSummary with all fields None.

Used for the first-snapshot case where no previous snapshot exists. Callers must never substitute 0 for None here (Rule 14).

§Examples

use sdivi_snapshot::delta::null_summary;

let s = null_summary();
assert_eq!(s.pattern_entropy_delta, None);
assert_eq!(s.convention_drift_delta, None);
assert_eq!(s.coupling_delta, None);
assert_eq!(s.community_count_delta, None);
assert_eq!(s.boundary_violation_delta, None);