pub struct CommandBus {
pub undo_stack: Vec<Box<dyn Command>>,
pub redo_stack: Vec<Box<dyn Command>>,
pub max_history: usize,
pub state: CommandState,
}Expand description
The command bus with undo/redo stacks.
Fields§
§undo_stack: Vec<Box<dyn Command>>§redo_stack: Vec<Box<dyn Command>>§max_history: usize§state: CommandStateAuto Trait Implementations§
impl Freeze for CommandBus
impl !RefUnwindSafe for CommandBus
impl !Send for CommandBus
impl !Sync for CommandBus
impl Unpin for CommandBus
impl UnsafeUnpin for CommandBus
impl !UnwindSafe for CommandBus
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