pub struct UndoRedoState {
pub can_undo: bool,
pub can_redo: bool,
pub undo_depth: usize,
pub redo_depth: usize,
pub redo_branch_count: usize,
pub selected_redo_branch_index: Option<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
redo_branch_count: usizeNumber of redo branches available at the current history node.
selected_redo_branch_index: Option<usize>Currently selected redo branch index, if any.
current_change_group: Option<usize>Current change group ID
Trait Implementations§
Source§impl Clone for UndoRedoState
impl Clone for UndoRedoState
Auto Trait Implementations§
impl Forget for UndoRedoState
impl Freeze for UndoRedoState
impl Move for UndoRedoState
impl RefUnwindSafe for UndoRedoState
impl Send for UndoRedoState
impl Sync for UndoRedoState
impl Unpin for UndoRedoState
impl UnsafeUnpin 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