Type Alias rustc_data_structures::snapshot_map::SnapshotMapRef
source · pub type SnapshotMapRef<'a, K, V, L> = SnapshotMap<K, V, &'a mut FxHashMap<K, V>, &'a mut L>;
Aliased Type§
struct SnapshotMapRef<'a, K, V, L> {
map: &'a mut HashMap<K, V, BuildHasherDefault<FxHasher>>,
undo_log: &'a mut L,
_marker: PhantomData<(K, V)>,
}
Fields§
§map: &'a mut HashMap<K, V, BuildHasherDefault<FxHasher>>
§undo_log: &'a mut L
§_marker: PhantomData<(K, V)>
Implementations§
source§impl<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§
source§impl<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>
source§fn 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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes