pub struct SetFlagCommand {
pub key: String,
pub value: bool,
pub old_value: bool,
}Expand description
Set a boolean flag, recording the previous value for undo.
Fields§
§key: String§value: bool§old_value: boolTrait Implementations§
Source§impl Command for SetFlagCommand
impl Command for SetFlagCommand
fn execute(&self, state: &mut CommandState) -> CommandResult
fn undo(&self, state: &mut CommandState) -> CommandResult
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for SetFlagCommand
impl RefUnwindSafe for SetFlagCommand
impl Send for SetFlagCommand
impl Sync for SetFlagCommand
impl Unpin for SetFlagCommand
impl UnsafeUnpin for SetFlagCommand
impl UnwindSafe for SetFlagCommand
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