Struct rustc_save_analysis::ty::subst::UserSubsts [−][src]
pub struct UserSubsts<'tcx> {
pub substs: &'tcx List<GenericArg<'tcx>>,
pub user_self_ty: Option<UserSelfTy<'tcx>>,
}Expand description
Stores the user-given substs to reach some fully qualified path
(e.g., <T>::Item or <T as Trait>::Item).
Fields
substs: &'tcx List<GenericArg<'tcx>>The substitutions for the item as given by the user.
user_self_ty: Option<UserSelfTy<'tcx>>The self type, in the case of a <T>::Item path (when applied
to an inherent impl). See UserSelfTy below.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for UserSubsts<'tcx>
impl<'tcx> !Send for UserSubsts<'tcx>
impl<'tcx> !Sync for UserSubsts<'tcx>
impl<'tcx> Unpin for UserSubsts<'tcx>
impl<'tcx> !UnwindSafe for UserSubsts<'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: 24 bytes