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)

Implementors§

source§

impl<K, V> Rollback<UndoLog<K, V>> for FxHashMap<K, V>
where K: Eq + Hash,

source§

impl<K, V, M, L> Rollback<UndoLog<K, V>> for SnapshotMap<K, V, M, L>
where K: Eq + Hash, M: Rollback<UndoLog<K, V>>,