Struct paralegal_spdg::rustc::mir::GeneratorInfo
source · pub struct GeneratorInfo<'tcx> {
pub yield_ty: Option<Ty<'tcx>>,
pub generator_drop: Option<Body<'tcx>>,
pub generator_layout: Option<GeneratorLayout<'tcx>>,
pub generator_kind: GeneratorKind,
}
Fields§
§yield_ty: Option<Ty<'tcx>>
The yield type of the function, if it is a generator.
generator_drop: Option<Body<'tcx>>
Generator drop glue.
generator_layout: Option<GeneratorLayout<'tcx>>
The layout of a generator. Produced by the state transformation.
generator_kind: GeneratorKind
If this is a generator then record the type of source expression that caused this generator to be created.
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for GeneratorInfo<'tcx>
impl<'tcx> !Send for GeneratorInfo<'tcx>
impl<'tcx> !Sync for GeneratorInfo<'tcx>
impl<'tcx> Unpin for GeneratorInfo<'tcx>
impl<'tcx> !UnwindSafe for GeneratorInfo<'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