Struct rustc_data_structures::snapshot_map::SnapshotMap [−][src]
Methods
impl<K, V> SnapshotMap<K, V> where
K: Hash + Clone + Eq,
[src]
impl<K, V> SnapshotMap<K, V> where
K: Hash + Clone + Eq,
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
pub fn insert(&mut self, key: K, value: V) -> bool
[src]
pub fn insert(&mut self, key: K, value: V) -> bool
pub fn insert_noop(&mut self)
[src]
pub fn insert_noop(&mut self)
pub fn remove(&mut self, key: K) -> bool
[src]
pub fn remove(&mut self, key: K) -> bool
pub fn get(&self, key: &K) -> Option<&V>
[src]
pub fn get(&self, key: &K) -> Option<&V>
pub fn snapshot(&mut self) -> Snapshot
[src]
pub fn snapshot(&mut self) -> Snapshot
pub fn commit(&mut self, snapshot: &Snapshot)
[src]
pub fn commit(&mut self, snapshot: &Snapshot)
pub fn partial_rollback<F>(
&mut self,
snapshot: &Snapshot,
should_revert_key: &F
) where
F: Fn(&K) -> bool,
[src]
pub fn partial_rollback<F>(
&mut self,
snapshot: &Snapshot,
should_revert_key: &F
) where
F: Fn(&K) -> bool,
pub fn rollback_to(&mut self, snapshot: &Snapshot)
[src]
pub fn rollback_to(&mut self, snapshot: &Snapshot)
Trait Implementations
Auto Trait Implementations
impl<K, V> Send for SnapshotMap<K, V> where
K: Send,
V: Send,
impl<K, V> Send for SnapshotMap<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for SnapshotMap<K, V> where
K: Sync,
V: Sync,
impl<K, V> Sync for SnapshotMap<K, V> where
K: Sync,
V: Sync,