Skip to main content

write_inspection_patch

Function write_inspection_patch 

pub fn write_inspection_patch(
    old: &InspectionSnapshot,
    new: &mut InspectionSnapshot,
    out: &mut Vec<u8>,
) -> InspectionPatchStats
Expand description

Write the operations that turn old into new to out, as a JSON array (see the module documentation), and say how much they carry. new is lent mutably only to write a node’s own fields without its children; it is left as it was.