pub struct History { /* private fields */ }Implementations§
Source§impl History
impl History
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn capacity(&self) -> usize
pub fn is_enabled(&self) -> bool
pub fn position(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
pub fn undo_count(&self) -> usize
pub fn redo_count(&self) -> usize
pub fn undo(&mut self) -> Option<Vec<Value>>
pub fn redo(&mut self) -> Option<Vec<Value>>
pub fn record(&mut self, snapshot: Vec<Value>)
pub fn seed(&mut self, snapshot: Vec<Value>)
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