pub struct HistoryManager<T: Clone> { /* private fields */ }
Expand description
历史管理器
Implementations§
Source§impl<T: Clone> HistoryManager<T>
impl<T: Clone> HistoryManager<T>
pub fn get_present(&self) -> T
Sourcepub fn jump_to_future(&mut self, index: usize)
pub fn jump_to_future(&mut self, index: usize)
跳转到未来状态
Sourcepub fn jump_to_past(&mut self, index: usize)
pub fn jump_to_past(&mut self, index: usize)
跳转到过去状态
Sourcepub fn clear_history(&mut self)
pub fn clear_history(&mut self)
清空历史记录
Auto Trait Implementations§
impl<T> Freeze for HistoryManager<T>where
T: Freeze,
impl<T> RefUnwindSafe for HistoryManager<T>where
T: RefUnwindSafe,
impl<T> Send for HistoryManager<T>where
T: Send,
impl<T> Sync for HistoryManager<T>where
T: Sync,
impl<T> Unpin for HistoryManager<T>where
T: Unpin,
impl<T> UnwindSafe for HistoryManager<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