pub struct History<T> {
pub entries: Vec<T>,
pub redo_entries: Vec<T>,
pub last_path: Option<String>,
}Expand description
The undo history of a form: the records before earlier changes and the records after undone changes, oldest first. The functions of the module take it by reference and return new values.
Fields§
§entries: Vec<T>Earlier records, at most HISTORY_LIMIT.
redo_entries: Vec<T>Records that redo restores, at most HISTORY_LIMIT.
last_path: Option<String>Path of the last change when it was a value edit.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for History<T>
Auto Trait Implementations§
impl<T> Freeze for History<T>
impl<T> RefUnwindSafe for History<T>where
T: RefUnwindSafe,
impl<T> Send for History<T>where
T: Send,
impl<T> Sync for History<T>where
T: Sync,
impl<T> Unpin for History<T>where
T: Unpin,
impl<T> UnsafeUnpin for History<T>
impl<T> UnwindSafe for History<T>where
T: UnwindSafe,
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