Struct rustc_data_structures::unify::Snapshot
source · pub struct Snapshot<S>where
S: UnificationStore,{
marker: PhantomData<S>,
snapshot: <S as UnificationStore>::Snapshot,
}Expand description
At any time, users may snapshot a unification table. The changes made during the snapshot may either be committed or rolled back.
Fields§
§marker: PhantomData<S>§snapshot: <S as UnificationStore>::SnapshotAuto Trait Implementations§
impl<S> DynSend for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize> + DynSend,
<S as UnificationStore>::Snapshot: DynSend,
impl<S> DynSync for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize> + DynSync,
<S as UnificationStore>::Snapshot: DynSync,
impl<S> Freeze for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize>,
<S as UnificationStore>::Snapshot: Freeze,
impl<S> RefUnwindSafe for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize> + RefUnwindSafe,
<S as UnificationStore>::Snapshot: RefUnwindSafe,
impl<S> Send for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize> + Send,
<S as UnificationStore>::Snapshot: Send,
impl<S> Sync for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize> + Sync,
<S as UnificationStore>::Snapshot: Sync,
impl<S> Unpin for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize> + Unpin,
<S as UnificationStore>::Snapshot: Unpin,
impl<S> UnwindSafe for Snapshot<S>where
S: UnificationStoreMut<Output = VarValue<<S as UnificationStoreBase>::Key>> + UnificationStoreBase + Index<usize> + UnwindSafe,
<S as UnificationStore>::Snapshot: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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.