Struct rustc_data_structures::snapshot_map::SnapshotMap
source · [−]pub struct SnapshotMap<K, V, M = FxHashMap<K, V>, L = VecLog<UndoLog<K, V>>> {
map: M,
undo_log: L,
_marker: PhantomData<(K, V)>,
}
Fields
map: M
undo_log: L
_marker: PhantomData<(K, V)>
Implementations
sourceimpl<K, V, M, L> SnapshotMap<K, V, M, L>
impl<K, V, M, L> SnapshotMap<K, V, M, L>
pub fn with_log<L2>(&mut self, undo_log: L2) -> SnapshotMap<K, V, &mut M, L2>
Trait Implementations
sourceimpl<K: Clone, V: Clone, M: Clone, L: Clone> Clone for SnapshotMap<K, V, M, L>
impl<K: Clone, V: Clone, M: Clone, L: Clone> Clone for SnapshotMap<K, V, M, L>
sourcefn clone(&self) -> SnapshotMap<K, V, M, L>
fn clone(&self) -> SnapshotMap<K, V, M, L>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<K, V, M, L> Default for SnapshotMap<K, V, M, L>where
M: Default,
L: Default,
impl<K, V, M, L> Default for SnapshotMap<K, V, M, L>where
M: Default,
L: Default,
Auto Trait Implementations
impl<K, V, M, L> RefUnwindSafe for SnapshotMap<K, V, M, L>where
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,
impl<K, V, M, L> Sync for SnapshotMap<K, V, M, L>where
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,
impl<K, V, M, L> UnwindSafe for SnapshotMap<K, V, M, L>where
K: UnwindSafe,
L: UnwindSafe,
M: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> Erased for T
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.