Struct rustc_typeck::check::GeneratorTypes[][src]

struct GeneratorTypes<'tcx> {
    yield_ty: Ty<'tcx>,
    interior: GeneratorInterior<'tcx>,
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Type of value that is yielded.

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Types that are captured (see GeneratorInterior for more).

Auto Trait Implementations

impl<'tcx> !Send for GeneratorTypes<'tcx>

impl<'tcx> !Sync for GeneratorTypes<'tcx>