pub struct History { /* private fields */ }Implementations§
Source§impl History
impl History
Sourcepub fn with_limit(limit: usize) -> Self
pub fn with_limit(limit: usize) -> Self
limit is the number of undo steps kept; older ones are dropped.
pub fn push(&mut self, tx: Transaction, kind: EditKind)
Sourcepub fn break_group(&mut self)
pub fn break_group(&mut self)
Ends the current group, so the next edit starts a new undo step. Called on cursor movement, selection changes and explicit checkpoints.
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for History
impl Freeze for History
impl Move for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
impl UnwindSafe for History
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