Struct ra_ap_hir_ty::ProjectionTy[][src]

pub struct ProjectionTy {
    pub associated_ty_id: AssocTypeId,
    pub substitution: Substitution,
}

A “projection” type corresponds to an (unnormalized) projection like <P0 as Trait<P1..Pn>>::Foo. Note that the trait and all its parameters are fully known.

Fields

associated_ty_id: AssocTypeIdsubstitution: Substitution

Implementations

impl ProjectionTy[src]

pub fn trait_ref(&self, db: &dyn HirDatabase) -> TraitRef[src]

pub fn self_type_parameter(&self) -> &Ty[src]

Trait Implementations

impl Clone for ProjectionTy[src]

impl Debug for ProjectionTy[src]

impl Eq for ProjectionTy[src]

impl Hash for ProjectionTy[src]

impl HirDisplay for ProjectionTy[src]

impl PartialEq<ProjectionTy> for ProjectionTy[src]

impl StructuralEq for ProjectionTy[src]

impl StructuralPartialEq for ProjectionTy[src]

impl TypeWalk for ProjectionTy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.