[−][src]Struct rustc_data_structures::snapshot_map::SnapshotMap  
Methods
impl<K, V> SnapshotMap<K, V> where
    K: Hash + Clone + Eq, [src]
K: Hash + Clone + Eq,
pub fn clear(&mut self)[src]
pub fn insert(&mut self, key: K, value: V) -> bool[src]
pub fn remove(&mut self, key: K) -> bool[src]
pub fn get(&self, key: &K) -> Option<&V>[src]
pub fn snapshot(&mut self) -> Snapshot[src]
pub fn commit(&mut self, snapshot: Snapshot)[src]
pub fn partial_rollback<F>(
    &mut self, 
    snapshot: &Snapshot, 
    should_revert_key: &F
) where
    F: Fn(&K) -> bool, [src]
&mut self,
snapshot: &Snapshot,
should_revert_key: &F
) where
F: Fn(&K) -> bool,
pub fn rollback_to(&mut self, snapshot: Snapshot)[src]
Trait Implementations
impl<K, V> Default for SnapshotMap<K, V> where
    K: Hash + Clone + Eq, [src]
K: Hash + Clone + Eq,
impl<'k, K, V> Index<&'k K> for SnapshotMap<K, V> where
    K: Hash + Clone + Eq, [src]
K: Hash + Clone + Eq,
Auto Trait Implementations
impl<K, V> Send for SnapshotMap<K, V> where
    K: Send,
    V: Send, 
K: Send,
V: Send,
impl<K, V> Sync for SnapshotMap<K, V> where
    K: Sync,
    V: Sync, 
K: Sync,
V: Sync,
Blanket Implementations
impl<T> Erased for T[src]
impl<T> Send for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> Sync for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T[src]
ⓘImportant traits for &'_ mut I
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,