Enum rustc_infer::infer::undo_log::UndoLog
source · pub(crate) enum UndoLog<'tcx> {
OpaqueTypes(OpaqueTypeKey<'tcx>, Option<OpaqueHiddenType<'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
OpaqueTypes(OpaqueTypeKey<'tcx>, Option<OpaqueHiddenType<'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
Trait Implementations
sourceimpl<'tcx> From<Instantiate> for UndoLog<'tcx>
impl<'tcx> From<Instantiate> for UndoLog<'tcx>
sourcefn from(x: Instantiate) -> Self
fn from(x: Instantiate) -> Self
Converts to this type from the input type.
sourceimpl<'tcx> From<UndoLog<ProjectionCacheKey<'tcx>, ProjectionCacheEntry<'tcx>>> for UndoLog<'tcx>
impl<'tcx> From<UndoLog<ProjectionCacheKey<'tcx>, ProjectionCacheEntry<'tcx>>> for UndoLog<'tcx>
sourcefn from(
x: UndoLog<ProjectionCacheKey<'tcx>, ProjectionCacheEntry<'tcx>>
) -> Self
fn from(
x: UndoLog<ProjectionCacheKey<'tcx>, ProjectionCacheEntry<'tcx>>
) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for UndoLog<'tcx>
impl<'tcx> !Send for UndoLog<'tcx>
impl<'tcx> !Sync for UndoLog<'tcx>
impl<'tcx> Unpin for UndoLog<'tcx>
impl<'tcx> !UnwindSafe for UndoLog<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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: 64 bytes
Size for each variant:
OpaqueTypes
: 32 bytesTypeVariables
: 40 bytesConstUnificationTable
: 56 bytesIntUnificationTable
: 24 bytesFloatUnificationTable
: 24 bytesRegionConstraintCollector
: 32 bytesRegionUnificationTable
: 24 bytesProjectionCache
: 56 bytesPushRegionObligation
: 0 bytes