Skip to main content

copy_blocks

Function copy_blocks 

Source
pub fn copy_blocks(
    source: &[GutenbergBlock],
    ids: &dyn IdGenerator,
    page_id: Uuid,
) -> (Vec<GutenbergBlock>, Vec<ExerciseCopy>)
Expand description

Copies source for page_id with new block ids. Exercise blocks get new exercise ids, listed in the result.