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