Skip to main content

field_changes

Function field_changes 

Source
pub fn field_changes(
    before: Option<&EntitySnapshot>,
    after: Option<&EntitySnapshot>,
    exercises_before: &HashMap<Uuid, ExerciseRecord>,
) -> Vec<FieldChange>
Expand description

What a change does to an entity, field by field, with references left unlabelled; see FieldChange::references_mut. A page’s exercises are compared with exercises_before, the exercises before the change by id, wherever they were.