ena::undo_log

Trait Rollback

Source
pub trait Rollback<U> {
    // Required method
    fn reverse(&mut self, undo: U);
}
Expand description

A trait implemented for storage types (like SnapshotVecStorage) which can be rolled back using actions of type U.

Required Methods§

Source

fn reverse(&mut self, undo: U)

Implementations on Foreign Types§

Source§

impl<D: SnapshotVecDelegate> Rollback<UndoLog<D>> for Vec<D::Value>

Source§

fn reverse(&mut self, undo: UndoLog<D>)

Source§

impl<T, U> Rollback<U> for &mut T
where T: Rollback<U>,

Source§

fn reverse(&mut self, undo: U)

Implementors§