[−][src]Struct rustc_infer::infer::undo_log::InferCtxtUndoLogs
The combined undo log for all the various unification tables. For each change to the storage for any kind of inference variable, we record an UndoLog entry in the vector here.
Fields
logs: Vec<UndoLog<'tcx>>num_open_snapshots: usizeImplementations
impl<'tcx> InferCtxtUndoLogs<'tcx>[src]
pub fn actions_since_snapshot(
&self,
snapshot: &Snapshot<'tcx>
) -> &[UndoLog<'tcx>][src]
&self,
snapshot: &Snapshot<'tcx>
) -> &[UndoLog<'tcx>]
pub fn start_snapshot(&mut self) -> Snapshot<'tcx>[src]
pub(crate) fn region_constraints_in_snapshot(
&self,
s: &Snapshot<'tcx>
) -> impl Iterator<Item = &UndoLog<'tcx>> + Clone[src]
&self,
s: &Snapshot<'tcx>
) -> impl Iterator<Item = &UndoLog<'tcx>> + Clone
pub(crate) fn region_constraints(
&self
) -> impl Iterator<Item = &UndoLog<'tcx>> + Clone[src]
&self
) -> impl Iterator<Item = &UndoLog<'tcx>> + Clone
pub(in infer::undo_log) fn assert_open_snapshot(
&self,
snapshot: &Snapshot<'tcx>
)[src]
&self,
snapshot: &Snapshot<'tcx>
)
Trait Implementations
impl<'_> Default for InferCtxtUndoLogs<'_>[src]
impl<'tcx> Index<usize> for InferCtxtUndoLogs<'tcx>[src]
type Output = UndoLog<'tcx>
The returned type after indexing.
pub fn index(&self, key: usize) -> &Self::Output[src]
impl<'tcx> IndexMut<usize> for InferCtxtUndoLogs<'tcx>[src]
impl<'tcx, T> UndoLogs<T> for InferCtxtUndoLogs<'tcx> where
UndoLog<'tcx>: From<T>, [src]
UndoLog<'tcx>: From<T>,
The UndoLogs trait defines how we undo a particular kind of action (of type T). We can undo any action that is convertable into a UndoLog (per the From impls above).
pub fn num_open_snapshots(&self) -> usize[src]
pub fn push(&mut self, undo: T)[src]
pub fn clear(&mut self)[src]
pub fn extend<J>(&mut self, undos: J) where
Self: Sized,
J: IntoIterator<Item = T>, [src]
Self: Sized,
J: IntoIterator<Item = T>,
pub fn in_snapshot(&self) -> bool
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for InferCtxtUndoLogs<'tcx>
impl<'tcx> !Send for InferCtxtUndoLogs<'tcx>
impl<'tcx> !Sync for InferCtxtUndoLogs<'tcx>
impl<'tcx> Unpin for InferCtxtUndoLogs<'tcx>
impl<'tcx> !UnwindSafe for InferCtxtUndoLogs<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.