Struct rustc_query_impl::ty::GeneratorSubsts [−][src]
pub struct GeneratorSubsts<'tcx> {
pub substs: &'tcx List<GenericArg<'tcx>>,
}Expand description
Similar to ClosureSubsts; see the above documentation for more.
Fields
substs: &'tcx List<GenericArg<'tcx>>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for GeneratorSubsts<'tcx>
impl<'tcx> !Send for GeneratorSubsts<'tcx>
impl<'tcx> !Sync for GeneratorSubsts<'tcx>
impl<'tcx> Unpin for GeneratorSubsts<'tcx>
impl<'tcx> !UnwindSafe for GeneratorSubsts<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes