pub fn apply(
page: PageDocument,
load_page: &dyn Fn(Uuid) -> Option<PageDocument>,
ops: &[Op],
ids: &dyn IdGenerator,
) -> Result<PageContentResult, EditError>Expand description
Applies ops in order to page. load_page gives the page a to_page names, None when the
course has no such page. Invariants are checked once, after the last op.