Skip to main content

InherentAliasTy

Type Alias InherentAliasTy 

Source
pub type InherentAliasTy<I> = Alias<I, <I as Interner>::InherentAssocTyId>;

Aliased Type§

pub struct InherentAliasTy<I> {
    pub kind: <I as Interner>::InherentAssocTyId,
    pub args: <I as Interner>::GenericArgs,
    pub(crate) _use_alias_new_instead: (),
}

Fields§

§kind: <I as Interner>::InherentAssocTyId§args: <I as Interner>::GenericArgs

The parameters of the associated, opaque, or constant alias.

For a projection, these are the generic parameters for the trait and the GAT parameters, if there are any.

For an inherent projection, they consist of the self type and the GAT parameters, if there are any.

For RPIT the generic parameters are for the generics of the function, while for TAIT it is used for the generic parameters of the alias.

§_use_alias_new_instead: ()

This field exists to prevent the creation of Alias without using the relevant constructor.

Implementations§

Source§

impl<I: Interner> InherentAliasTy<I>

Source

pub fn new_inherent_from_args( interner: I, kind: I::InherentAssocTyId, args: I::GenericArgs, ) -> Self

Source

pub fn inherent_to_alias_ty(self) -> AliasTy<I>

Layout§

Note: Encountered an error during type layout; the type failed to be normalized.