pub struct SetParamCommand {
pub key: String,
pub value: f64,
pub old_value: f64,
}Expand description
Set a numeric parameter, recording the previous value for undo.
Fields§
§key: String§value: f64§old_value: f64Trait Implementations§
Source§impl Command for SetParamCommand
impl Command for SetParamCommand
fn execute(&self, state: &mut CommandState) -> CommandResult
fn undo(&self, state: &mut CommandState) -> CommandResult
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for SetParamCommand
impl RefUnwindSafe for SetParamCommand
impl Send for SetParamCommand
impl Sync for SetParamCommand
impl Unpin for SetParamCommand
impl UnsafeUnpin for SetParamCommand
impl UnwindSafe for SetParamCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more