Struct rustc_mir_transform::ty::ProjectionTy [−][src]
pub struct ProjectionTy<'tcx> {
pub substs: &'tcx List<GenericArg<'tcx>>,
pub item_def_id: DefId,
}Expand description
Represents the projection of an associated type. In explicit UFCS
form this would be written <T as Trait<..>>::N.
Fields
substs: &'tcx List<GenericArg<'tcx>>The parameters of the associated item.
item_def_id: DefIdThe DefId of the TraitItem for the associated type N.
Note that this is not the DefId of the TraitRef containing this
associated type, which is in tcx.associated_item(item_def_id).container.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for ProjectionTy<'tcx>
impl<'tcx> !Send for ProjectionTy<'tcx>
impl<'tcx> !Sync for ProjectionTy<'tcx>
impl<'tcx> Unpin for ProjectionTy<'tcx>
impl<'tcx> !UnwindSafe for ProjectionTy<'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: 16 bytes