pub struct UndoRedoState {
pub can_undo: bool,
pub can_redo: bool,
pub undo_depth: usize,
pub redo_depth: usize,
pub current_change_group: Option<usize>,
}Expand description
Undo/redo stack state
Fields§
§can_undo: boolCan undo
can_redo: boolCan redo
undo_depth: usizeUndo stack depth
redo_depth: usizeRedo stack depth
current_change_group: Option<usize>Current change group ID
Trait Implementations§
Source§impl Clone for UndoRedoState
impl Clone for UndoRedoState
Source§fn clone(&self) -> UndoRedoState
fn clone(&self) -> UndoRedoState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UndoRedoState
impl RefUnwindSafe for UndoRedoState
impl Send for UndoRedoState
impl Sync for UndoRedoState
impl Unpin for UndoRedoState
impl UnwindSafe for UndoRedoState
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