Skip to main content

rofd_editor/steps/
step_trait.rs

1use rofd_dom::AnnotationModel;
2
3/// A reversible edit on the annotation model. Stores enough to apply AND revert.
4pub trait Step: Send + std::fmt::Debug {
5    fn apply(&self, anns: &mut AnnotationModel);
6    fn revert(&self, anns: &mut AnnotationModel);
7}