Struct rustc_data_structures::snapshot_map::SnapshotMap
[−]
[src]
pub struct SnapshotMap<K, V> where
K: Hash + Clone + Eq, { /* fields omitted */ }🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl<K, V> SnapshotMap<K, V> where
K: Hash + Clone + Eq, [src]
K: Hash + Clone + Eq,
pub fn new() -> Self[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn insert(&mut self, key: K, value: V) -> bool[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn remove(&mut self, key: K) -> bool[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn get(&self, key: &K) -> Option<&V>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn snapshot(&mut self) -> Snapshot[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn commit(&mut self, snapshot: Snapshot)[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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,
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn rollback_to(&mut self, snapshot: Snapshot)[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<'k, K, V> Index<&'k K> for SnapshotMap<K, V> where
K: Hash + Clone + Eq, [src]
K: Hash + Clone + Eq,