[−][src]Struct rustc_ap_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> RefUnwindSafe for SnapshotMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
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,
impl<K, V> Unpin for SnapshotMap<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for SnapshotMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
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>,