pub struct SessionHistory { /* private fields */ }Expand description
Ring of ops + cursor for undo/redo.
Implementations§
Source§impl SessionHistory
impl SessionHistory
Sourcepub fn undo(&mut self, plan: &mut ProcessPlan) -> bool
pub fn undo(&mut self, plan: &mut ProcessPlan) -> bool
Undoes.
Sourcepub fn redo(&mut self, plan: &mut ProcessPlan) -> bool
pub fn redo(&mut self, plan: &mut ProcessPlan) -> bool
Redoes.
Sourcepub fn apply_and_record(&mut self, plan: &mut ProcessPlan, op: SessionOp)
pub fn apply_and_record(&mut self, plan: &mut ProcessPlan, op: SessionOp)
Applies and-record.
Trait Implementations§
Source§impl Clone for SessionHistory
impl Clone for SessionHistory
Source§impl Debug for SessionHistory
impl Debug for SessionHistory
Auto Trait Implementations§
impl Freeze for SessionHistory
impl RefUnwindSafe for SessionHistory
impl Send for SessionHistory
impl Sync for SessionHistory
impl Unpin for SessionHistory
impl UnsafeUnpin for SessionHistory
impl UnwindSafe for SessionHistory
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