Struct rustc_infer::infer::undo_log::InferCtxtUndoLogs [−][src]
Expand description
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
pub(crate) fn region_constraints_in_snapshot(
&self,
s: &Snapshot<'tcx>
) -> impl Iterator<Item = &UndoLog<'tcx>> + Clone
Trait Implementations
The UndoLogs trait defines how we undo a particular kind of action (of type T). We can undo any action that is convertable into an UndoLog (per the From impls above).
How many open snapshots this undo log currently has
Pushes a new “undo item” onto the undo log. This method is invoked when some action is taken (e.g., a variable is unified). It records the info needed to reverse that action should an enclosing snapshot be rolleod back. Read more
Extends the undo log with many undos.
True if a snapshot has started, false otherwise
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes