Enum rustc_infer::infer::undo_log::UndoLog[][src]

pub(crate) enum UndoLog<'tcx> {
    TypeVariables(UndoLog<'tcx>),
    ConstUnificationTable(UndoLog<Delegate<ConstVid<'tcx>>>),
    IntUnificationTable(UndoLog<Delegate<IntVid>>),
    FloatUnificationTable(UndoLog<Delegate<FloatVid>>),
    RegionConstraintCollector(UndoLog<'tcx>),
    RegionUnificationTable(UndoLog<Delegate<RegionVidKey<'tcx>>>),
    ProjectionCache(UndoLog<ProjectionCacheKey<'tcx>, ProjectionCacheEntry<'tcx>>),
    PushRegionObligation,
}
Expand description

Records the “undo” data for a single operation that affects some form of inference variable.

Variants

TypeVariables(UndoLog<'tcx>)

Tuple Fields

0: UndoLog<'tcx>

ConstUnificationTable(UndoLog<Delegate<ConstVid<'tcx>>>)

Tuple Fields

IntUnificationTable(UndoLog<Delegate<IntVid>>)

Tuple Fields

FloatUnificationTable(UndoLog<Delegate<FloatVid>>)

Tuple Fields

RegionConstraintCollector(UndoLog<'tcx>)

Tuple Fields

0: UndoLog<'tcx>

RegionUnificationTable(UndoLog<Delegate<RegionVidKey<'tcx>>>)

Tuple Fields

ProjectionCache(UndoLog<ProjectionCacheKey<'tcx>, ProjectionCacheEntry<'tcx>>)

Tuple Fields

PushRegionObligation

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The Rollback trait defines how to rollback a particular action.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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: 72 bytes

Size for each variant:

  • TypeVariables: 48 bytes
  • ConstUnificationTable: 64 bytes
  • IntUnificationTable: 24 bytes
  • FloatUnificationTable: 24 bytes
  • RegionConstraintCollector: 32 bytes
  • RegionUnificationTable: 32 bytes
  • ProjectionCache: 64 bytes
  • PushRegionObligation: 0 bytes