pub struct CoroutineLayout<'tcx> {
    pub field_tys: IndexVec<CoroutineSavedLocal, CoroutineSavedTy<'tcx>>,
    pub field_names: IndexVec<CoroutineSavedLocal, Option<Symbol>>,
    pub variant_fields: IndexVec<VariantIdx, IndexVec<FieldIdx, CoroutineSavedLocal>>,
    pub variant_source_info: IndexVec<VariantIdx, SourceInfo>,
    pub storage_conflicts: BitMatrix<CoroutineSavedLocal, CoroutineSavedLocal>,
}Expand description
The layout of coroutine state.
Fields§
§field_tys: IndexVec<CoroutineSavedLocal, CoroutineSavedTy<'tcx>>The type of every local stored inside the coroutine.
field_names: IndexVec<CoroutineSavedLocal, Option<Symbol>>The name for debuginfo.
variant_fields: IndexVec<VariantIdx, IndexVec<FieldIdx, CoroutineSavedLocal>>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<CoroutineSavedLocal, CoroutineSavedLocal>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> Freeze for CoroutineLayout<'tcx>
impl<'tcx> !RefUnwindSafe for CoroutineLayout<'tcx>
impl<'tcx> Send for CoroutineLayout<'tcx>
impl<'tcx> Sync for CoroutineLayout<'tcx>
impl<'tcx> Unpin for CoroutineLayout<'tcx>
impl<'tcx> !UnwindSafe for CoroutineLayout<'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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.