Skip to main content

machine_changes

Function machine_changes 

Source
pub fn machine_changes(
    parts: &[MachinePart],
    old: &MachineStateRecord,
    new: &MachineStateRecord,
) -> Vec<MachineChange>
Expand description

Every value of the parts parts that differs between old, the recorded state, and new, the current one, in the order of parts and then of the values.

Each part is compared value by value; a value that only one side has is none on the other. A part that could be read on one side only is one change, named by the part, from or to unknown.