Skip to main content

build_delta

Function build_delta 

Source
pub fn build_delta(base: &Value, next: &Value) -> Option<Value>
Expand description

Build the tree-delta body, or None when a whole snapshot is the better answer.

Returning None is not a failure: past roughly half the tree a delta costs more than the snapshot it replaces, and a cursor that disappears cannot be expressed as a delta at all.