pub struct UndoTree { /* private fields */ }Implementations§
Source§impl UndoTree
impl UndoTree
pub fn new() -> Self
pub fn push(&mut self, entry: UndoEntry)
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
pub fn pop_undo(&mut self) -> Option<UndoEntry>
pub fn pop_redo(&mut self) -> Option<UndoEntry>
pub fn undo_len(&self) -> usize
pub fn redo_len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UndoTree
impl RefUnwindSafe for UndoTree
impl Send for UndoTree
impl Sync for UndoTree
impl Unpin for UndoTree
impl UnsafeUnpin for UndoTree
impl UnwindSafe for UndoTree
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