[−][src]Struct rustc_infer::infer::undo_log::InferCtxtUndoLogs

pub(crate) struct InferCtxtUndoLogs<'tcx> {
    logs: Vec<UndoLog<'tcx>>,
    num_open_snapshots: usize,
}

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: usize

Implementations

impl<'tcx> InferCtxtUndoLogs<'tcx>[src]

pub fn actions_since_snapshot(
    &self,
    snapshot: &Snapshot<'tcx>
) -> &[UndoLog<'tcx>]
[src]

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]

pub(crate) fn region_constraints(
    &self
) -> impl Iterator<Item = &UndoLog<'tcx>> + Clone
[src]

pub(in infer::undo_log) fn assert_open_snapshot(
    &self,
    snapshot: &Snapshot<'tcx>
)
[src]

Trait Implementations

impl<'_> Default for InferCtxtUndoLogs<'_>[src]

impl<'tcx> Index<usize> for InferCtxtUndoLogs<'tcx>[src]

type Output = UndoLog<'tcx>

The returned type after indexing.

impl<'tcx> IndexMut<usize> for InferCtxtUndoLogs<'tcx>[src]

impl<'tcx, T> UndoLogs<T> for InferCtxtUndoLogs<'tcx> where
    UndoLog<'tcx>: From<T>, 
[src]

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).

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]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]