pub struct History { /* private fields */ }Implementations§
Source§impl History
impl History
pub fn new(depth: usize) -> History
pub fn depth(&self) -> usize
pub fn set_depth(&mut self, depth: usize)
pub fn apply( &mut self, files: &mut Files, edit: impl Edit, ) -> Result<Changed, DocError>
pub fn apply_boxed( &mut self, files: &mut Files, edit: Box<dyn Edit>, ) -> Result<Changed, DocError>
pub fn typed( &mut self, files: &mut Files, edit: impl Edit, now: f64, gap: f64, ) -> Result<Changed, DocError>
pub fn undo(&mut self, files: &mut Files) -> Result<Option<Changed>, DocError>
pub fn redo(&mut self, files: &mut Files) -> Result<Option<Changed>, DocError>
pub fn seal(&mut self)
pub fn clear(&mut self)
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
pub fn undo_len(&self) -> usize
pub fn redo_len(&self) -> usize
pub fn undo_label(&self) -> Option<&str>
pub fn redo_label(&self) -> Option<&str>
pub fn undo_labels(&self) -> Vec<&str>
pub fn redo_labels(&self) -> Vec<&str>
pub fn prune(&mut self, files: &Files) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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