pub trait UndoInfo:
Send
+ Sync
+ Any {
// Required method
fn description(&self) -> Txt;
// Provided methods
fn meta(&self) -> StateMapRef<'_, UNDO> { ... }
fn into_dyn(self) -> Arc<dyn UndoInfo> ⓘ
where Self: Sized { ... }
}Expand description
Metadata info about an action registered for undo action.
Required Methods§
Sourcefn description(&self) -> Txt
fn description(&self) -> Txt
Short display description of the action that will be undone/redone.
Provided Methods§
Sourcefn meta(&self) -> StateMapRef<'_, UNDO>
fn meta(&self) -> StateMapRef<'_, UNDO>
Any extra metadata associated with the item. This can be a thumbnail of an image edit action for example, or an icon.
Is empty by default.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".