pub type Commit<T> = Rc<dyn Fn(T, &mut App) -> Result<(), String>>;
Sets the new op; an error is shown under the fields.
pub struct Commit<T> { /* private fields */ }