Skip to main content

Step

Trait Step 

Source
pub trait Step: Send + Debug {
    // Required methods
    fn apply(&self, anns: &mut AnnotationModel);
    fn revert(&self, anns: &mut AnnotationModel);
}
Expand description

A reversible edit on the annotation model. Stores enough to apply AND revert.

Required Methods§

Source

fn apply(&self, anns: &mut AnnotationModel)

Source

fn revert(&self, anns: &mut AnnotationModel)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§