pub trait AppUndoEx {
// Required method
fn add_undo_event<T: Event + Clone>(&mut self) -> &mut App;
}Required Methods§
Sourcefn add_undo_event<T: Event + Clone>(&mut self) -> &mut App
fn add_undo_event<T: Event + Clone>(&mut self) -> &mut App
Setup the app to manage undo events of type T
In order to use undo-action, you must call UndoScheduler::register.
then call UndoRequester::undo when you need.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.