Skip to main content

apply_structure

Function apply_structure 

Source
pub fn apply_structure(
    state: &CourseState,
    before: &CourseStructure,
    after: &CourseStructure,
    contents: &HashMap<Uuid, Vec<GutenbergBlock>>,
) -> CourseState
Expand description

The state after the structure engine turned before into after. contents holds the blocks of new pages. Order numbers change only in lists whose order changed.