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> Index<usize> for InPlace<K> where
K: UnifyKey, [src]
impl<K> Index<usize> for InPlace<K> where
K: UnifyKey, type Output = VarValue<K>
The returned type after indexing.
fn index(&self, index: usize) -> &VarValue<K>[src]
fn index(&self, index: usize) -> &VarValue<K>Performs the indexing (container[index]) operation.
impl<K> Clone for InPlace<K> where
K: UnifyKey + Clone, [src]
impl<K> Clone for InPlace<K> where
K: UnifyKey + Clone, fn clone(&self) -> InPlace<K>[src]
fn clone(&self) -> InPlace<K>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
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]
impl<K> Debug for InPlace<K> where
K: UnifyKey + Debug, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<K> UnificationStore for InPlace<K> where
K: UnifyKey, [src]
impl<K> UnificationStore for InPlace<K> where
K: UnifyKey, type Key = K
type Value = <K as UnifyKey>::Value
type Snapshot = Snapshot
fn new() -> InPlace<K>[src]
fn new() -> InPlace<K>fn start_snapshot(&mut self) -> <InPlace<K> as UnificationStore>::Snapshot[src]
fn start_snapshot(&mut self) -> <InPlace<K> as UnificationStore>::Snapshotfn rollback_to(&mut self, snapshot: <InPlace<K> as UnificationStore>::Snapshot)[src]
fn rollback_to(&mut self, snapshot: <InPlace<K> as UnificationStore>::Snapshot)fn commit(&mut self, snapshot: <InPlace<K> as UnificationStore>::Snapshot)[src]
fn commit(&mut self, snapshot: <InPlace<K> as UnificationStore>::Snapshot)fn reset_unifications<impl FnMut(u32) -> VarValue>(
&mut self,
value: impl FnMut(u32) -> VarValue
) where
impl FnMut(u32) -> VarValue: FnMut(u32) -> VarValue<<InPlace<K> as UnificationStore>::Key>, [src]
fn reset_unifications<impl FnMut(u32) -> VarValue>(
&mut self,
value: impl FnMut(u32) -> VarValue
) where
impl FnMut(u32) -> VarValue: FnMut(u32) -> VarValue<<InPlace<K> as UnificationStore>::Key>, fn len(&self) -> usize[src]
fn len(&self) -> usizefn push(&mut self, value: VarValue<<InPlace<K> as UnificationStore>::Key>)[src]
fn push(&mut self, value: VarValue<<InPlace<K> as UnificationStore>::Key>)fn reserve(&mut self, num_new_values: usize)[src]
fn reserve(&mut self, num_new_values: usize)fn update<F>(&mut self, index: usize, op: F) where
F: FnOnce(&mut 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>), fn tag() -> &'static str[src]
fn tag() -> &'static str