[−][src]Struct rustc_ap_rustc_data_structures::snapshot_map::SnapshotMap
Implementations
impl<K, V, M, L> SnapshotMap<K, V, M, L>
[src]
pub fn with_log<L2>(&mut self, undo_log: L2) -> SnapshotMap<K, V, &mut M, L2>
[src]
impl<K, V, M, L> SnapshotMap<K, V, M, L> where
K: Hash + Clone + Eq,
M: BorrowMut<FxHashMap<K, V>> + Borrow<FxHashMap<K, V>>,
L: UndoLogs<UndoLog<K, V>>,
[src]
K: Hash + Clone + Eq,
M: BorrowMut<FxHashMap<K, V>> + Borrow<FxHashMap<K, V>>,
L: UndoLogs<UndoLog<K, V>>,
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]
impl<K, V> SnapshotMap<K, V> where
K: Hash + Clone + Eq,
[src]
K: Hash + Clone + Eq,
pub fn snapshot(&mut self) -> Snapshot
[src]
pub fn commit(&mut self, snapshot: Snapshot)
[src]
pub fn rollback_to(&mut self, snapshot: Snapshot)
[src]
Trait Implementations
impl<K, V, M, L> Default for SnapshotMap<K, V, M, L> where
M: Default,
L: Default,
[src]
M: Default,
L: Default,
impl<'k, K, V, M, L> Index<&'k K> for SnapshotMap<K, V, M, L> where
K: Hash + Clone + Eq,
M: Borrow<FxHashMap<K, V>>,
[src]
K: Hash + Clone + Eq,
M: Borrow<FxHashMap<K, V>>,
impl<K, V, M, L> Rollback<UndoLog<K, V>> for SnapshotMap<K, V, M, L> where
K: Eq + Hash,
M: Rollback<UndoLog<K, V>>,
[src]
K: Eq + Hash,
M: Rollback<UndoLog<K, V>>,
Auto Trait Implementations
impl<K, V, M, L> RefUnwindSafe for SnapshotMap<K, V, M, L> where
K: RefUnwindSafe,
L: RefUnwindSafe,
M: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
L: RefUnwindSafe,
M: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V, M, L> Send for SnapshotMap<K, V, M, L> where
K: Send,
L: Send,
M: Send,
V: Send,
K: Send,
L: Send,
M: Send,
V: Send,
impl<K, V, M, L> Sync for SnapshotMap<K, V, M, L> where
K: Sync,
L: Sync,
M: Sync,
V: Sync,
K: Sync,
L: Sync,
M: Sync,
V: Sync,
impl<K, V, M, L> Unpin for SnapshotMap<K, V, M, L> where
K: Unpin,
L: Unpin,
M: Unpin,
V: Unpin,
K: Unpin,
L: Unpin,
M: Unpin,
V: Unpin,
impl<K, V, M, L> UnwindSafe for SnapshotMap<K, V, M, L> where
K: UnwindSafe,
L: UnwindSafe,
M: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
L: UnwindSafe,
M: 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,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,