Struct rustc_data_structures::unify::InPlace
[−]
[src]
pub struct InPlace<K> where
K: UnifyKey, { /* fields omitted */ }
Backing store for an in-place unification table. Not typically used directly.
Trait Implementations
impl<K> UnificationStore for InPlace<K> where
K: UnifyKey,
[src]
K: UnifyKey,
type Key = K
type Value = <K as UnifyKey>::Value
type Snapshot = Snapshot
fn new() -> InPlace<K>
[src]
fn start_snapshot(&mut self) -> <InPlace<K> as UnificationStore>::Snapshot
[src]
fn rollback_to(&mut self, snapshot: <InPlace<K> as UnificationStore>::Snapshot)
[src]
fn commit(&mut self, snapshot: <InPlace<K> as UnificationStore>::Snapshot)
[src]
fn len(&self) -> usize
[src]
fn push(&mut self, value: VarValue<<InPlace<K> as UnificationStore>::Key>)
[src]
fn update<F>(&mut self, index: usize, op: F) where
F: FnOnce(&mut VarValue<<InPlace<K> as UnificationStore>::Key>),
[src]
F: FnOnce(&mut VarValue<<InPlace<K> as UnificationStore>::Key>),
fn tag() -> &'static str
[src]
impl<K> Index<usize> for InPlace<K> where
K: UnifyKey,
[src]
K: UnifyKey,
type Output = VarValue<K>
The returned type after indexing.
fn index(&self, index: usize) -> &VarValue<K>
[src]
Performs the indexing (container[index]
) operation.
impl<K> Clone for InPlace<K> where
K: UnifyKey + Clone,
[src]
K: UnifyKey + Clone,
fn clone(&self) -> InPlace<K>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<K> Debug for InPlace<K> where
K: UnifyKey + Debug,
[src]
K: UnifyKey + Debug,