Struct rustc_typeck::check::GeneratorTypes [−][src]
struct GeneratorTypes<'tcx> { yield_ty: Ty<'tcx>, interior: Ty<'tcx>, movability: GeneratorMovability, }
🔬 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
yield_ty: Ty<'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?
Type of value that is yielded.
interior: Ty<'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?
Types that are captured (see GeneratorInterior
for more).
movability: GeneratorMovability
🔬 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?
Indicates if the generator is movable or static (immovable)
Auto Trait Implementations
impl<'tcx> !Send for GeneratorTypes<'tcx>
impl<'tcx> !Send for GeneratorTypes<'tcx>
impl<'tcx> !Sync for GeneratorTypes<'tcx>
impl<'tcx> !Sync for GeneratorTypes<'tcx>