Skip to main content

diff_context

Function diff_context 

Source
pub fn diff_context(
    prev: &ContextSnapshot,
    next: &ContextSnapshot,
) -> ContextDelta
Expand description

Compute the minimal-ish ContextDelta turning prev into next. Regions that only grew at the tail become a compact Append; everything else is carried as a Set/Clear/Remove.