WIP: Eraser implementation #7

Draft
Franciman wants to merge 8 commits from eraserhead into master
1 changed files with 4 additions and 0 deletions
Showing only changes of commit d0f40530ff - Show all commits

View File

@ -45,6 +45,10 @@ impl VersionedCanvas {
}
}
// TODO: Right now the update function internally checks
// whether the canvas has been changed by leveraging the
// Copy on Write semantics of im::Vector.
// Is this a good solution? Does this work correctly? THINK ABOUT THIS
pub fn update(&mut self, update_fn: impl FnOnce(&mut Canvas)) {
// This is a linear history,
// so we first check if there are newer versions, if so