Struct paralegal_spdg::rustc::mir::terminator::GeneratorLayout
source · pub struct GeneratorLayout<'tcx> {
pub field_tys: IndexVec<GeneratorSavedLocal, GeneratorSavedTy<'tcx>>,
pub field_names: IndexVec<GeneratorSavedLocal, Option<Symbol>>,
pub variant_fields: IndexVec<VariantIdx, IndexVec<FieldIdx, GeneratorSavedLocal>>,
pub variant_source_info: IndexVec<VariantIdx, SourceInfo>,
pub storage_conflicts: BitMatrix<GeneratorSavedLocal, GeneratorSavedLocal>,
}
Expand description
The layout of generator state.
Fields§
§field_tys: IndexVec<GeneratorSavedLocal, GeneratorSavedTy<'tcx>>
The type of every local stored inside the generator.
field_names: IndexVec<GeneratorSavedLocal, Option<Symbol>>
The name for debuginfo.
variant_fields: IndexVec<VariantIdx, IndexVec<FieldIdx, GeneratorSavedLocal>>
Which of the above fields are in each variant. Note that one field may be stored in multiple variants.
variant_source_info: IndexVec<VariantIdx, SourceInfo>
The source that led to each variant being created (usually, a yield or await).
storage_conflicts: BitMatrix<GeneratorSavedLocal, GeneratorSavedLocal>
Which saved locals are storage-live at the same time. Locals that do not have conflicts with each other are allowed to overlap in the computed layout.
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for GeneratorLayout<'tcx>
impl<'tcx> !Send for GeneratorLayout<'tcx>
impl<'tcx> !Sync for GeneratorLayout<'tcx>
impl<'tcx> Unpin for GeneratorLayout<'tcx>
impl<'tcx> !UnwindSafe for GeneratorLayout<'tcx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more