Struct rustc_typeck::check::GeneratorTypes [−][src]
struct GeneratorTypes<'tcx> {
resume_ty: Ty<'tcx>,
yield_ty: Ty<'tcx>,
interior: Ty<'tcx>,
movability: Movability,
}Expand description
When check_fn is invoked on a generator (i.e., a body that
includes yield), it returns back some information about the yield
points.
Fields
resume_ty: Ty<'tcx>Expand description
Type of generator argument / values returned by yield.
yield_ty: Ty<'tcx>Expand description
Type of value that is yielded.
interior: Ty<'tcx>Expand description
Types that are captured (see GeneratorInterior for more).
movability: MovabilityExpand description
Indicates if the generator is movable or static (immovable).
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for GeneratorTypes<'tcx>
impl<'tcx> !Send for GeneratorTypes<'tcx>
impl<'tcx> !Sync for GeneratorTypes<'tcx>
impl<'tcx> Unpin for GeneratorTypes<'tcx>
impl<'tcx> !UnwindSafe for GeneratorTypes<'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]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,