Struct rustc_middle::ty::sty::GeneratorSubstsParts
source · [−]pub struct GeneratorSubstsParts<'tcx, T> {
pub parent_substs: &'tcx [GenericArg<'tcx>],
pub resume_ty: T,
pub yield_ty: T,
pub return_ty: T,
pub witness: T,
pub tupled_upvars_ty: T,
}
Fields
parent_substs: &'tcx [GenericArg<'tcx>]
resume_ty: T
yield_ty: T
return_ty: T
witness: T
tupled_upvars_ty: T
Auto Trait Implementations
impl<'tcx, T> !RefUnwindSafe for GeneratorSubstsParts<'tcx, T>
impl<'tcx, T> Send for GeneratorSubstsParts<'tcx, T>where
T: Send,
impl<'tcx, T> Sync for GeneratorSubstsParts<'tcx, T>where
T: Sync,
impl<'tcx, T> Unpin for GeneratorSubstsParts<'tcx, T>where
T: Unpin,
impl<'tcx, T> !UnwindSafe for GeneratorSubstsParts<'tcx, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, R> InternIteratorElement<T, R> for T
impl<T, R> InternIteratorElement<T, R> for T
type Output = R
fn intern_with<I, F>(iter: I, f: F) -> <T as InternIteratorElement<T, R>>::Outputwhere
I: Iterator<Item = T>,
F: FnOnce(&[T]) -> R,
sourceimpl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
sourceimpl<CTX, T> Value<CTX> for Twhere
CTX: DepContext,
impl<CTX, T> Value<CTX> for Twhere
CTX: DepContext,
default fn from_cycle_error(tcx: CTX) -> T
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.