Enum rustc_typeck::middle::infer::GenericKindUnstable [-] [+] [src]

pub enum GenericKind<'tcx> {
    Param(ParamTy),
    Projection(ProjectionTy<'tcx>),
}

Variants

Param
Projection

Methods

impl<'tcx> GenericKind<'tcx>

fn to_ty(&self, tcx: &ctxt<'tcx>) -> &'tcx TyS<'tcx>

Trait Implementations

impl<'tcx> Repr<'tcx> for GenericKind<'tcx>

fn repr(&self, tcx: &ctxt<'tcx>) -> String

impl<'tcx> UserString<'tcx> for GenericKind<'tcx>

fn user_string(&self, tcx: &ctxt<'tcx>) -> String

Derived Implementations

impl<'tcx> Eq for GenericKind<'tcx>

impl<'tcx> PartialEq<GenericKind<'tcx>> for GenericKind<'tcx>

fn eq(&self, __arg_0: &GenericKind<'tcx>) -> bool

fn ne(&self, __arg_0: &GenericKind<'tcx>) -> bool

impl<'tcx> Debug for GenericKind<'tcx>

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl<'tcx> Clone for GenericKind<'tcx>

fn clone(&self) -> GenericKind<'tcx>

fn clone_from(&mut self, source: &Self)