Struct rustc_typeck::middle::ty::ParamTyUnstable [-] [+] [src]

pub struct ParamTy {
    pub space: ParamSpace,
    pub idx: u32,
    pub name: Name,
}

Fields

space
idx
name

Methods

impl ParamTy

fn new(space: ParamSpace, index: u32, name: Name) -> ParamTy

fn for_self() -> ParamTy

fn for_def(def: &TypeParameterDef) -> ParamTy

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

fn is_self(&self) -> bool

Trait Implementations

impl<'tcx> UserString<'tcx> for ParamTy

fn user_string(&self, _tcx: &ctxt) -> String

impl<'tcx> Repr<'tcx> for ParamTy

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

Derived Implementations

impl Debug for ParamTy

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

impl Hash for ParamTy

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for ParamTy

impl PartialEq<ParamTy> for ParamTy

fn eq(&self, __arg_0: &ParamTy) -> bool

fn ne(&self, __arg_0: &ParamTy) -> bool

impl Copy for ParamTy

impl Clone for ParamTy

fn clone(&self) -> ParamTy

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