Skip to main content

with_course_default_copies

Function with_course_default_copies 

Source
fn with_course_default_copies<'a>(
    page: &'a PageSnapshot,
    switched: &HashSet<Uuid>,
    course_default: Option<&CmsPeerOrSelfReviewConfiguration>,
) -> Cow<'a, PageSnapshot>
Expand description

The staged page with the exercises in switched given a new copy of course_default, keeping the config id and review instructions staged: staging copied the default as it was then.