[−][src]Struct rustc_mir::transform::generator::TransformVisitor

pub(in transform::generator) struct TransformVisitor<'tcx> {
    tcx: TyCtxt<'tcx>,
    state_adt_ref: &'tcx AdtDef,
    state_substs: SubstsRef<'tcx>,
    discr_ty: Ty<'tcx>,
    remap: FxHashMap<Local, (Ty<'tcx>, VariantIdx, usize)>,
    storage_liveness: IndexVec<BasicBlock, Option<BitSet<Local>>>,
    suspension_points: Vec<SuspensionPoint<'tcx>>,
    always_live_locals: AlwaysLiveLocals,
    new_ret_local: Local,
}

Fields

tcx: TyCtxt<'tcx>state_adt_ref: &'tcx AdtDefstate_substs: SubstsRef<'tcx>discr_ty: Ty<'tcx>remap: FxHashMap<Local, (Ty<'tcx>, VariantIdx, usize)>storage_liveness: IndexVec<BasicBlock, Option<BitSet<Local>>>suspension_points: Vec<SuspensionPoint<'tcx>>always_live_locals: AlwaysLiveLocalsnew_ret_local: Local

Implementations

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

pub(in transform::generator) fn make_state(
    &self,
    idx: VariantIdx,
    val: Operand<'tcx>,
    source_info: SourceInfo
) -> impl Iterator<Item = Statement<'tcx>>
[src]

pub(in transform::generator) fn make_field(
    &self,
    variant_index: VariantIdx,
    idx: usize,
    ty: Ty<'tcx>
) -> Place<'tcx>
[src]

pub(in transform::generator) fn set_discr(
    &self,
    state_disc: VariantIdx,
    source_info: SourceInfo
) -> Statement<'tcx>
[src]

pub(in transform::generator) fn get_discr(
    &self,
    body: &mut Body<'tcx>
) -> (Statement<'tcx>, Place<'tcx>)
[src]

Trait Implementations

impl<'tcx> MutVisitor<'tcx> for TransformVisitor<'tcx>[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for TransformVisitor<'tcx>

impl<'tcx> !Send for TransformVisitor<'tcx>

impl<'tcx> !Sync for TransformVisitor<'tcx>

impl<'tcx> Unpin for TransformVisitor<'tcx>

impl<'tcx> !UnwindSafe for TransformVisitor<'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<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]