pub struct SetValueCommand<T: Clone + Send + Sync + 'static> { /* private fields */ }Expand description
Simple value change command
Implementations§
Trait Implementations§
Source§impl<T: Clone + Send + Sync + 'static> Command for SetValueCommand<T>
impl<T: Clone + Send + Sync + 'static> Command for SetValueCommand<T>
Source§fn execute(&mut self) -> CommandResult
fn execute(&mut self) -> CommandResult
Execute the command
Source§fn undo(&mut self) -> CommandResult
fn undo(&mut self) -> CommandResult
Undo the command
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get command description
Source§fn redo(&mut self) -> CommandResult
fn redo(&mut self) -> CommandResult
Redo the command (default: re-execute)
Source§fn merge(&mut self, _other: Box<dyn Command>) -> Option<Box<dyn Command>>
fn merge(&mut self, _other: Box<dyn Command>) -> Option<Box<dyn Command>>
Merge with another command (returns merged command)
Source§fn memory_size(&self) -> usize
fn memory_size(&self) -> usize
Estimate memory usage of this command