Struct rustc_privacy::ty::ProjectionPredicate [−][src]
pub struct ProjectionPredicate<'tcx> {
pub projection_ty: ProjectionTy<'tcx>,
pub ty: &'tcx TyS<'tcx>,
}Expand description
This kind of predicate has no direct correspondent in the syntax, but it roughly corresponds to the syntactic forms:
T: TraitRef<..., Item = Type><T as TraitRef<...>>::Item == Type(NYI)
In particular, form #1 is “desugared” to the combination of a
normal trait predicate (T: TraitRef<...>) and one of these
predicates. Form #2 is a broader form in that it also permits
equality between arbitrary types. Processing an instance of
Form #2 eventually yields one of these ProjectionPredicate
instances to normalize the LHS.
Fields
projection_ty: ProjectionTy<'tcx>ty: &'tcx TyS<'tcx>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for ProjectionPredicate<'tcx>
impl<'tcx> !Send for ProjectionPredicate<'tcx>
impl<'tcx> !Sync for ProjectionPredicate<'tcx>
impl<'tcx> Unpin for ProjectionPredicate<'tcx>
impl<'tcx> !UnwindSafe for ProjectionPredicate<'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