Trait rustc_data_structures::undo_log::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> Rollback<UndoLog<D>> for Vec<<D as SnapshotVecDelegate>::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§

source§

impl<D> Rollback<UndoLog<D>> for SnapshotVec<D, Vec<<D as SnapshotVecDelegate>::Value>, ()>

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>>,