Struct rustc_mir::transform::generator::SuspensionPoint [−][src]
struct SuspensionPoint<'tcx> {
state: usize,
resume: BasicBlock,
resume_arg: Place<'tcx>,
drop: Option<BasicBlock>,
storage_liveness: BitSet<Local>,
}Expand description
A yield point in the generator.
Fields
state: usizeExpand description
State discriminant used when suspending or resuming at this point.
resume: BasicBlockExpand description
The block to jump to after resumption.
resume_arg: Place<'tcx>Expand description
Where to move the resume argument after resumption.
drop: Option<BasicBlock>Expand description
Which block to jump to if the generator is dropped in this state.
storage_liveness: BitSet<Local>Expand description
Set of locals that have live storage while at this suspension point.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for SuspensionPoint<'tcx>
impl<'tcx> !Send for SuspensionPoint<'tcx>
impl<'tcx> !Sync for SuspensionPoint<'tcx>
impl<'tcx> Unpin for SuspensionPoint<'tcx>
impl<'tcx> !UnwindSafe for SuspensionPoint<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]