Rollback in rustc_data_structures::undo_log - Rust (original) (raw)

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 Rollback<UndoLog> for Vec<<D as SnapshotVecDelegate>::Value>

Source§

fn reverse(&mut self, undo: UndoLog)

Source§

impl<T, U> Rollback for &mut T

Source§

fn reverse(&mut self, undo: U)

Implementors§

Source§

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

Source§

impl<K, V> Rollback<UndoLog<K, V>> for FxHashMap<K, V>

Source§

impl<K, V, M, L> Rollback<UndoLog<K, V>> for SnapshotMap<K, V, M, L>